Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

69 строки
1.6 KiB

  1. %h1= auth['authority_name']
  2. %h2 Summary
  3. %p.warning There are typically two applications per kiosk: one for full planning permission or telecoms prior approval, and one for advertisement consent. So the number of kiosks applied for is half the number of applications.
  4. %table#summary
  5. %thead
  6. %tr
  7. %th Status
  8. %th Decision
  9. %th Appeal status
  10. %th Appeal decision
  11. %th Applications
  12. %tbody
  13. - summary.each do |row|
  14. %tr
  15. %td= cleanup(row['status'])
  16. %td= cleanup(row['decision'])
  17. %td= cleanup(row['appeal_status'])
  18. %td= cleanup(row['appeal_decision'])
  19. %td.right= row['qty']
  20. %h2 Media
  21. %p
  22. %a{ :rel => 'alternate', :type => 'application/rss+xml', :href => 'media.xml' }
  23. RSS feed for InLinkUK media stories in
  24. = auth['authority_name']
  25. %p
  26. %a.button{ :href => 'https://github.com/adrianshort/kiosks-campaign/issues/1' }
  27. Add more media here
  28. - if stories.size > 0
  29. %table
  30. - stories.each do |item|
  31. %tr
  32. %td.nowrap= short_date(item['publish_date'])
  33. %td.nowrap= item['publication']
  34. %td
  35. %a{ :href => item['url'] }<
  36. = item['title']
  37. - else
  38. %p No media stories.
  39. %h2 Applications
  40. %p= download_button(slug(auth['authority_name']) + '.csv')
  41. %table#applications
  42. %thead
  43. %tr
  44. %th Received
  45. %th Reference
  46. %th Address
  47. %th Status
  48. %th Decision
  49. - apps.each do |app|
  50. %tr
  51. %td.nowrap= short_date(app['date_received'])
  52. %td
  53. %a{ href: app['info_url']}
  54. = app['council_reference']
  55. %td= app['address']
  56. %td= cleanup(app['status'])
  57. %td= cleanup(app['decision'])