Skip to content

Commit

Permalink
Adding create / edit buttons to feed#index for #87.
Browse files Browse the repository at this point in the history
  • Loading branch information
bamnet committed May 10, 2012
1 parent 5adb430 commit 1536755
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/feeds/_browse_body.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<span class="badge"><%= feed.approved_contents.count %></span> <%= feed.name %>
<% end %>
<small>&nbsp;&nbsp;<%= feed.description %></small>
<% if can? :update, feed %>
<small><%= link_to "[#{t(:edit)}]", edit_feed_path(feed) %></small>
<% end %>
</h3>
<% if feed.children.count > 0 %>
<p class="indented">Sub-feeds:
Expand All @@ -18,6 +21,11 @@
</p>
<% end %>
</li>
<% end %>
<% if can? :create, Feed %>
<li>
<h3><%= link_to "+ #{t(:new_feed)}", new_feed_path %></h3>
</li>
<% end %>
</ul>
</article>
Expand Down

0 comments on commit 1536755

Please sign in to comment.