Skip to content

Commit

Permalink
Add view button for every displayed Bet
Browse files Browse the repository at this point in the history
The button takes the user to the appropriate Bet show page.
  • Loading branch information
LeonTenko committed Mar 14, 2017
1 parent 0553f81 commit 2a2b8de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/bets/_display_bets.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
<td class="col-md-2"><%= bet.created_at %></td>
<td class="col-md-2"><%= bet.expires_at %></td>
<td class="col-md-2"><%= bet.bet_total %></td>
<td class="col-md-4"><%= bet.bet %></td>
<td class="col-md-3"><%= bet.bet %></td>
<td class="col-md-1">
<%= link_to bet, class: 'btn btn-secondary', role: 'button' do %>
<i class="fa fa-eye"></i>
<% end %>
</td>
</tr>
<% end %>
</tbody>
Expand Down

0 comments on commit 2a2b8de

Please sign in to comment.