mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
24 lines
433 B
Plaintext
24 lines
433 B
Plaintext
<h1>Listing problems</h1>
|
|
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Title</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @problems.each do |problem| %>
|
|
<tr>
|
|
<td><%= problem.id %></td>
|
|
<td><%= link_to problem.title, problem %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<%= link_to 'New Problem', new_problem_path, class: 'btn btn-default' %>
|