<% content_for :locale do %><span class="locale empty"></span>
<% end %>

<h2>Locales <span>Primary locale is <%= Tolk::Locale.primary_locale.language_name %></span></h2>
<% if @locales.any? %>
  <ul class="locales clearfix">
    <% @locales.each do |locale| %>
      <li>
        <%= link_to locale.language_name, locale %>
        <span class="missing_translations"><%= locale.count_phrases_without_translation %></span>
      </li>
    <% end %>
  </ul>
  
<% else %>
  <p>No locales yet.</p>

<% end %>
<% form_for(Tolk::Locale.new) do |f| %>
<div class="submit">
  <%= f.error_messages %>
  <p>
    <%= f.label "Add a new Locale" %>
    <%= f.text_field :name, :class => "locale_new" %>
    <%= f.submit 'Add' %>
  </p>
</div>
<% end %>



<% content_for :locale do %><span class="locale empty"></span>
<% end %>

<h2>Locales <span>Primary locale is <%= Tolk::Locale.primary_locale.language_name %></span></h2>
<% if @locales.any? %>
  <ul class="locales clearfix">
    <% @locales.each do |locale| %>
      <li>
        <%= link_to locale.language_name, locale %>
        <% missing_count = locale.count_phrases_without_translation %>
        <% if missing_count > 0 %>
          <span class="missing_translations"><%= locale.count_phrases_without_translation %></span>
        <% end %>
      </li>
    <% end %>
  </ul>
  
<% else %>
  <p>No locales yet.</p>

<% end %>
<% form_for(Tolk::Locale.new) do |f| %>
<div class="submit">
  <%= f.error_messages %>
  <p>
    <%= f.label "Add a new Locale" %>
    <%= f.text_field :name, :class => "locale_new" %>
    <%= f.submit 'Add' %>
  </p>
</div>
<% end %>



Hide the missing count if it's zero
Hide the missing count if it's zero
