mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Add pending translations to navbar for admins
This commit is contained in:
parent
89a8fbba99
commit
8cf8deae0a
@ -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 %>
|
||||
|
||||
@ -3,6 +3,7 @@ de:
|
||||
dashboard:
|
||||
index:
|
||||
administration: "Administration"
|
||||
translations: "Übersetzungen"
|
||||
view_translations: "Übersetzungen anschauen"
|
||||
update_problem_count: "Problem-Anzahl aktualisieren"
|
||||
update: "Aktualisieren"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user