GeoRSS aggregator and Layar augmented reality server
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

35 lignes
851 B

  1. %h1= link_to @feed.title, @feed.url
  2. %p= @feed.description
  3. %p
  4. = link_to "Fetch", fetch_feed_url(@feed), :class => "button"
  5.  
  6. %a.button{ :href => "http://validator.w3.org/appc/check.cgi?url=#{@feed.feed_url}"}
  7. Validate
  8. %p
  9. = pluralize(@feed.posts.count, "post")
  10. = link_to @feed.feed_url, @feed.feed_url
  11. %p
  12. - if @feed.last_fetched.nil?
  13. This feed has never been fetched
  14. - else
  15. Last fetched
  16. = time_ago_in_words @feed.last_fetched
  17. ago
  18. %table#feed
  19. - @feed.posts.each do |p|
  20. %tr
  21. %td= link_to p.title, p.url
  22. %td= link_to "Map", "https://maps.google.co.uk/maps?q=%s,%s&hl=en&z=18" % [ p.loc['lat'], p.loc['lng'] ], :target => "_blank"
  23. %td
  24. - unless p.published.nil?
  25. = p.published.strftime("%d %b %Y %H:%M")
  26. = link_to 'Edit', edit_feed_path(@feed)
  27. \|
  28. = link_to 'Back', :root