Sha256: aa2a094d307537d47247c9d9b7b87b06d542edd79cb09a3ab847196830978ec6
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
<% page_title "Events" %> <div class="table-responsive"> <table class="table table-bordered table-hover"> <tr> <th>Slug</th> <th>Title</th> <th>Accepting?</th> <th>Deadline</th> <th>Manage</th> </tr> <% if @events.blank? %> <tr> <td colspan="5" class="empty-text"> — No events — </td> </tr> <% end %> <% for event in @events %> <tr class="<%= cycle("even", "odd") %>"> <td><%=h event.slug %></td> <td> <%= link_to h(event.title), [:manage, event] %> </td> <td><%=h event.accepting_proposals?.inspect %></td> <td><%=h event.deadline %></td> <td> <%= link_to 'Show', manage_event_path(event), :class => "showable" %> <%= link_to 'Proposals', event_proposals_path(event), :class => "showable" %> <%= link_to 'Edit', edit_manage_event_path(event), :class => "editable" %> <%= link_to 'Destroy', manage_event_path(event), :data => { :confirm => 'Are you sure?' }, :method => :delete, :class => "deletable" %> </td> </tr> <% end %> </table> </div> <br /> <%= link_to 'New event', new_manage_event_path, :class => "addable" %>
Version data entries
4 entries across 4 versions & 1 rubygems