GeoRSS aggregator and Layar augmented reality server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 line
757 B

  1. %h1 Apollo
  2. #new_feed
  3. = render 'form'
  4. %p= link_to "Fetch all", :fetch_all, :class => "button"
  5. %table
  6. %tr
  7. %th
  8. %th Posts
  9. %th Fetched
  10. %th
  11. %th
  12. %th
  13. - @feeds.each do |f|
  14. %tr
  15. %td
  16. .feed_title
  17. = link_to f.title, f
  18. %td.right= f.posts.count
  19. %td
  20. - if f.last_fetched.nil?
  21. never
  22. - else
  23. = time_ago_in_words f.last_fetched
  24. ago
  25. %td= link_to "Fetch", fetch_feed_url(f), :class => "button"
  26. %td= link_to 'Edit', edit_feed_path(f), :class => "button"
  27. %td= link_to 'Delete', f, :confirm => "Delete #{f.title} and all its posts?", :method => :delete, :class => "button"
  28. %tr
  29. %td
  30. %td.right= Post.count
  31. %td
  32. %td
  33. %td
  34. %td