Skip to content

Commit

Permalink
Only show translations with 100% in green
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Oct 31, 2020
1 parent 8491dd3 commit 5f2426b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/views/taginfo/translations.erb
Expand Up @@ -11,7 +11,7 @@
<td><%= h(::Language[locale.code].english_name) %></td>
<td lang="<%= locale.code %>" dir="<%= locale.ltr? ? 'ltr' : 'rtl' %>"><%= h(::Language[locale.code].native_name) %></td>
<td class="tr"><%= @num_texts[locale.code] %>/<%= @num_texts['en'] %></td>
<td class="tr <%= percent > 90 ? 'good' : ( percent <= 80 ? 'bad' : 'okay' ) %>"><%= percent %>%</td>
<td class="tr <%= percent == 100 ? 'good' : ( percent <= 80 ? 'bad' : 'okay' ) %>"><%= percent %>%</td>
<td><a href="/taginfo/i18n?lang=<%= locale.code %>">see texts</a></td>
</tr>
<% end %>
Expand Down

0 comments on commit 5f2426b

Please sign in to comment.