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 28, 2017
1 parent d3085c5 commit 26a724b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/views/bets/_display_bets.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
<th class="col-md-6">Bet description</th>
</tr>
</thead>
<tbody>
<% bets.each do |bet| %>
<tr>
<td class="col-md-2"><%= bet.creator_id %></td>
<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-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>
</table>
</div>
</div>

0 comments on commit 26a724b

Please sign in to comment.