Skip to content

Commit

Permalink
be smarter about the links
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Jan 2, 2024
1 parent 9cf4d71 commit 40e7716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/books/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ To reference these judgements from a notebook or another system you can referenc
</tr>
</thead>
<tbody>
<% @stats_data.each do | row| %>
<% @stats_data.each do | row | %>
<tr>
<th scope="row"><%=judge_name (row[:judge]) %></th>
<td><%=row[:unrateable] %> <%= link_to_if(row[:judge] && row[:unrateable] > 0, "reset", reset_unrateable_book_path(@book,row[:judge].id), method: :delete, data: { confirm: "Are you sure?" }){ '' } %></td>
<td><%=row[:judge_later] %> <%= link_to_if(row[:judge] && row[:judge_later] > 0, "reset", reset_judge_later_book_path(@book,row[:judge].id), method: :delete, data: { confirm: "Are you sure?" }){ '' } %></td>
<td><%=row[:unrateable] %> <%= link_to_if(row[:judge].id && row[:unrateable] > 0, "reset", reset_unrateable_book_path(@book,row[:judge].id), method: :delete, data: { confirm: "Are you sure?" }){ '' } %></td>
<td><%=row[:judge_later] %> <%= link_to_if(row[:judge].id && row[:judge_later] > 0, "reset", reset_judge_later_book_path(@book,row[:judge].id), method: :delete, data: { confirm: "Are you sure?" }){ '' } %></td>
<td><%=row[:judgements] %></td>
</tr>
<% end %>
Expand Down

0 comments on commit 40e7716

Please sign in to comment.