|
- %h1 Apollo
-
- #new_feed
- = render 'form'
-
- %p= link_to "Fetch all", :fetch_all, :class => "button"
-
- %table
- %tr
- %th
- %th Posts
- %th Fetched
- %th
- %th
- %th
-
- - @feeds.each do |f|
- %tr
- %td
- .feed_title
- = link_to f.title, f
- %td.right= f.posts.count
- %td
- - if f.last_fetched.nil?
- never
- - else
- = time_ago_in_words f.last_fetched
- ago
- %td= link_to "Fetch", fetch_feed_url(f), :class => "button"
- %td= link_to 'Edit', edit_feed_path(f), :class => "button"
- %td= link_to 'Delete', f, :confirm => "Delete #{f.title} and all its posts?", :method => :delete, :class => "button"
-
- %tr
- %td
- %td.right= Post.count
- %td
- %td
- %td
- %td
|