mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add check whether problem has a translation
This commit is contained in:
@@ -13,7 +13,14 @@
|
||||
<% @problems.each do |problem| %>
|
||||
<tr>
|
||||
<td><%= problem.id %></td>
|
||||
<td><%= link_to problem.title, problem %></td>
|
||||
<td>
|
||||
<% if problem.is_translated? %>
|
||||
<%= link_to problem.title, problem %>
|
||||
<% else %>
|
||||
<i>Dieses Problem wurde noch nicht übersetzt.</i>
|
||||
<% end %>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
1
app/views/problems/untranslated.html.erb
Normal file
1
app/views/problems/untranslated.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
Dieses Problem wurde noch nicht übersetzt.
|
||||
Reference in New Issue
Block a user