1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00
projekteuler/app/views/admin/translations/index.html.erb

24 lines
641 B
Plaintext

<% provide(:title, Translation.model_name.human(count: 2)) %>
<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>