1
0
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:
2015-02-16 09:37:13 +01:00
parent 49c7d97a41
commit 6b463417ba
26 changed files with 96 additions and 39 deletions

View File

@@ -0,0 +1,22 @@
<h1><%= Translation.model_name.human(count: 2) %></h1>
<%= render 'translation_pagination' %>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th><%= Translation.human_attribute_name(:id) %></th>
<th><%= Translation.human_attribute_name(:title) %></th>
</tr>
</thead>
<tbody>
<% @translations.each do |translation| %>
<tr>
<td><%= translation.id %></td>
<td><%= link_to translation.title, [:admin, translation] %></td>
</tr>
<% end %>
</tbody>
</table>
<%= render 'translation_pagination' %>
<br>