mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 00:36:42 +01:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
<% provide(:title, Translation.model_name.human(count: 2)) %>
|
|
|
|
<div class="pb-2 mt-4 mb-2 border-bottom">
|
|
<h1><%= Translation.model_name.human(count: 2) %></h1>
|
|
</div>
|
|
|
|
<%= render 'translation_pagination' %>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th><%= Translation.human_attribute_name(:created_at) %></th>
|
|
<th><%= Translation.human_attribute_name(:author) %></th>
|
|
<th><%= Translation.human_attribute_name(:problem_id) %></th>
|
|
<th><%= Translation.human_attribute_name(:title) %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @translations.each do |translation| %>
|
|
<tr>
|
|
<td><div data-toggle="tooltip" data-placement="left" title="<%= l translation.created_at %>"><%= time_ago_in_words(translation.created_at) %></div></td>
|
|
<td>
|
|
<% if translation.has_author? %>
|
|
<%= translation.author.name %>
|
|
<% else %>
|
|
<i><%= t('.anonymous') %></i>
|
|
<% end %>
|
|
</td>
|
|
<td><%= translation.problem_id %></td>
|
|
<td><%= link_to translation.title, [:admin, translation] %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= render 'translation_pagination' %>
|
|
<br> |