% provide(:title, Problem.model_name.human(count: 2)) %>
<%= t('problems.index.translated_count', translated: Problem.translated_count, total: Problem.count) %>
| <%= Problem.human_attribute_name(:id) %> | <%= Problem.human_attribute_name(:title) %> |
|---|---|
| <%= problem.id %> | <% if problem.is_translated? %> <%= link_to problem.title, problem %> <% else %> <%= t 'problems.not_yet_translated' %> <%= link_to new_problem_translation_path(problem), class: 'btn btn-primary btn-sm' do %> <%= icon('fas', 'edit') %> <%= t '.suggest_translation' %> <% end %> <% end %> |