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.
 
 
 
 
 

54 lignes
1.1 KiB

  1. %h1
  2. Layer:
  3. = @layer.name
  4. %p
  5. API URL:
  6. = "#{request.protocol}#{request.host_with_port}/posts/near.layar?layer_id=#{@layer.id}"
  7. %br
  8. Layar layer name:
  9. = @layer.layar_name
  10. %h2 Feeds
  11. #new_feed
  12. = render 'feeds/form'
  13. %p= link_to "Fetch all", :fetch_all, :class => "button"
  14. %table
  15. %tr
  16. %th
  17. %th Posts
  18. %th Fetched
  19. %th
  20. %th
  21. %th
  22. - @layer.feeds.each do |f|
  23. %tr
  24. %td
  25. .feed_title
  26. = link_to f.title, f
  27. %td.right= f.posts.count
  28. %td
  29. - if f.last_fetched.nil?
  30. never
  31. - else
  32. = (time_ago_in_words(f.last_fetched) + " ago").gsub(/ +/, " ").html_safe
  33. %td= link_to "Fetch", fetch_feed_url(f), :class => "button"
  34. %td= link_to 'Edit', edit_feed_path(f), :class => "button"
  35. %td= link_to 'Delete', f, :confirm => "Delete #{f.title} and all its posts?", :method => :delete, :class => "button"
  36. %tr
  37. %td
  38. %td.right [number of posts in this layer]
  39. %td
  40. %td
  41. %td
  42. %td
  43. = link_to 'Edit', edit_layer_path(@layer)
  44. \|
  45. = link_to 'Back', layers_path