1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 16:46:42 +01:00
projekteuler/app/views/problems/index.html.erb

25 lines
502 B
Plaintext

<h1>Listing problems</h1>
<%= render 'problem_pagination' %>
<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>
<%= render 'problem_pagination' %>
<br>
<%= link_to 'New Problem', new_problem_path, class: 'btn btn-default' %>