<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>