Permalink
Browse files

Show vote count and hide scaffold stuff.

  • Loading branch information...
1 parent 7c77ecc commit 9071744cc15a357df4e0cfb5689b197b626ec8d0 Mike Simpson committed Jan 21, 2013
Showing with 4 additions and 3 deletions.
  1. +3 −3 app/views/events/index.html.erb
  2. +1 −0 app/views/events/show.html.erb
@@ -14,9 +14,9 @@
<td><%= event.votes.size %></td>
<td><%= display_winning_time(event) %></td>
<td>
- <%= link_to 'Vote', event %>
- <%= link_to 'Edit', edit_event_path(event) %>
- <%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' } %>
+ <%#= link_to 'Vote', event %>
+ <%#= link_to 'Edit', edit_event_path(event) %>
+ <%#= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' } %>
</td>
</tr>
<% end %>
@@ -22,6 +22,7 @@
<% else %>
<%= timeslot %>
<% end %>
+ Votes: <%= timeslot.votes.count %>
</li>
<% end %>
</ul>

0 comments on commit 9071744

Please sign in to comment.