1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 00:36:42 +01:00

Add pending translations to navbar for admins

This commit is contained in:
Philipp Fischbeck 2019-02-05 13:42:33 +01:00
parent 89a8fbba99
commit 8cf8deae0a
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,9 @@
<%= link_to Problem.model_name.human(count: 2), problems_path %>
<% if user_signed_in? and current_user.admin? %>
<%= link_to t('admin.dashboard.index.administration'), admin_dashboard_index_path %>
<%= link_to admin_translations_path do %>
<%= t('admin.dashboard.index.translations') %> <span class="badge"><%= Translation.pending.count %></span>
<% end %>
<% end %>
<% end %>
<%= nav class: 'navbar-right' do %>

View File

@ -3,6 +3,7 @@ de:
dashboard:
index:
administration: "Administration"
translations: "Übersetzungen"
view_translations: "Übersetzungen anschauen"
update_problem_count: "Problem-Anzahl aktualisieren"
update: "Aktualisieren"