mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Move translation viewing to admin namespace
This commit is contained in:
2
app/views/admin/dashboard/index.html.erb
Normal file
2
app/views/admin/dashboard/index.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1><%= t('.administration') %></h1>
|
||||
<%= link_to t('.view_translations'), admin_translations_path %>
|
||||
@@ -13,7 +13,7 @@
|
||||
<% @translations.each do |translation| %>
|
||||
<tr>
|
||||
<td><%= translation.id %></td>
|
||||
<td><%= link_to translation.title, translation %></td>
|
||||
<td><%= link_to translation.title, [:admin, translation] %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -27,7 +27,7 @@
|
||||
<%= nav class: 'navbar-left' do %>
|
||||
<%= link_to Problem.model_name.human(count: 2), problems_path %>
|
||||
<% if admin_signed_in? %>
|
||||
<%= link_to Translation.model_name.human(count: 2), translations_path %>
|
||||
<%= link_to t('admin.dashboard.index.administration'), :admin %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= nav class: 'navbar-right' do %>
|
||||
|
||||
Reference in New Issue
Block a user