1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Add ability to accept or decline translations

This commit is contained in:
2019-02-02 17:53:02 +01:00
parent 0dd3092c4c
commit 3a2aa6ea1a
11 changed files with 87 additions and 11 deletions

View File

@@ -6,7 +6,8 @@
<table class="table table-striped table-bordered">
<thead>
<tr>
<th><%= Translation.human_attribute_name(:id) %></th>
<th><%= Translation.human_attribute_name(:created_at) %></th>
<th><%= Translation.human_attribute_name(:problem_id) %></th>
<th><%= Translation.human_attribute_name(:title) %></th>
</tr>
</thead>
@@ -14,7 +15,8 @@
<tbody>
<% @translations.each do |translation| %>
<tr>
<td><%= translation.id %></td>
<td><div data-toggle="tooltip" data-placement="left" title="<%= l translation.created_at %>"><%= time_ago_in_words(translation.created_at) %></div></td>
<td><%= translation.problem_id %></td>
<td><%= link_to translation.title, [:admin, translation] %></td>
</tr>
<% end %>