Skip to content

Commit

Permalink
on events index, move edit button to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywatts committed Sep 27, 2014
1 parent ee72a45 commit dce9240
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th>Title</th>
<th>Description</th>
<th>Count</th>
<th>Last Swipe-In</th>
<th></th>
<th></th>
</tr>
</thead>

Expand All @@ -38,15 +38,15 @@
<span class="glyphicon glyphicon-list-alt"></span> Attendance
<% end %>
</td>
<td><%= event.title %></td>
<td><%= event.description %></td>
<td><%= event.attendance_entries.count %></td>
<td><%= event.last_edited %></td>
<td>
<%= link_to edit_event_path(event), :class => "btn btn-default" do %>
<span class="glyphicon glyphicon-pencil"></span> Edit Event
<% end %>
</td>
<td><%= event.title %></td>
<td><%= event.description %></td>
<td><%= event.attendance_entries.count %></td>
<td><%= event.last_edited %></td>
<td><%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %></td>
</tr>
<% end %>
Expand Down

0 comments on commit dce9240

Please sign in to comment.