mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
<% provide(:title, Problem.model_name.human(count: 2)) %>
|
|
|
|
<div class="page-header"><h1><%= Problem.model_name.human(count: 2) %></h1></div>
|
|
|
|
<p><%= t('problems.index.translated_count', translated: Problem.translated_count, total: Problem.count) %></p>
|
|
<%= progress_bar percentage: @translated_percentage, label: true, striped: true %>
|
|
|
|
<%= render 'problem_pagination' %>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th><%= Problem.human_attribute_name(:id) %></th>
|
|
<th><%= Problem.human_attribute_name(:title) %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @problems.each do |problem| %>
|
|
<tr>
|
|
<td><%= problem.id %></td>
|
|
<td>
|
|
<% if problem.is_translated? %>
|
|
<%= link_to problem.title, problem %>
|
|
<% else %>
|
|
<i><%= t 'problems.not_yet_translated' %></i>
|
|
<%= link_to new_problem_translation_path(problem), class: 'btn btn-default btn-xs' do %>
|
|
<%= icon :pencil %> <%= t '.suggest_translation' %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= render 'problem_pagination' %>
|
|
<br>
|