This repository has been archived on 2021-07-13. You can view files and clone it, but cannot push or open issues or pull requests.
feedfu/app/views/feeds/_navigation.html.erb
2013-01-10 22:21:23 +01:00

14 lines
709 B
Text

<ul id="feed_list">
<% @feeds.each do |feed| %>
<% unread_count = feed.items.unread.size %>
<li>
(<%= link_to "del", feed_path(feed), :remote => true, :method => :delete, :class => "delete_feed button", :confirm => "Delete this feed?" %>,
<%= link_to "err", errors_feed_path(feed), :remote => true, :class => "button", :update => "feed_content" %>,
<%= link_to "up", refresh_feed_path(feed), :remote => true, :class => "button", :method => :post, :update => "feed_content" %>)
<% r = unread_count.zero? ? "read" : "unread" %>
<%= link_to feed.title, feed_path(feed), :remote => true, :update => "feed_content", :class => r %>
[<%= unread_count %>]
</li>
<% end %>
</ul>