Permalink
Browse files

Delete events links in admin index

  • Loading branch information...
1 parent 6d86a43 commit 8a300ff3db5cabcd1a6bc3d3982d994f29cd808b Keavy McMinn committed Jan 5, 2012
Showing with 7 additions and 3 deletions.
  1. +5 −2 app/views/admin/events/index.html.erb
  2. +2 −1 public/stylesheets/rubythere.css
@@ -7,8 +7,11 @@
<th>Name</th>
</tr>
<% collection.each do |event| -%>
- <tr>
- <td><%= link_to "Edit", edit_admin_event_path(event), :class => 'secondary' %></td>
+ <tr class="<%= event.approved? ? 'approved' : 'not-approved' %>">
+ <td>
+ <%= link_to "Edit", edit_admin_event_path(event), :class => 'secondary' %>
+ <%= link_to "Delete", admin_event_path(event), :class => 'secondary', :method => :delete %>
+ </td>
<td><%= event.twitter %></td>
<td><%= link_to_name(event) %></td>
</tr>
@@ -102,6 +102,7 @@ a.active{color: #333;}
a[rel]{color: #00A0F0; padding-right: 15px; background:url(../images/external.png) no-repeat;
background-position: top right;
}
+a[rel="nofollow"]{background: none; color: #000;}
sup a{color: #999;}
#ft a{color: #fff; text-decoration: none;}
@@ -256,7 +257,7 @@ tbody tr{border-bottom: 1px solid #ededed;}
td.status{width: 22%; color: #686868; font-weight: bold;}
td.city{width: 26%;}
td.date{width: 15%;}
-
+tr.not-approved td{background-color: lightblue;}
/* lists */
ul#tweets, ul.speakers{margin: 5px 0 10px 0;}

0 comments on commit 8a300ff

Please sign in to comment.