Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
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.
 
 
 
 
 

58 lines
1.3 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. - if stories.size > 0
  21. %h2 Media
  22. %table
  23. - stories.each do |item|
  24. %tr
  25. %td.nowrap= short_date(item['publish_date'])
  26. %td.nowrap= item['publication']
  27. %td
  28. %a{ :href => item['url'] }<
  29. = item['title']
  30. %h2 Applications
  31. %p= download_button(slug(auth['authority_name']) + '.csv')
  32. %table#applications
  33. %thead
  34. %tr
  35. %th Received
  36. %th Reference
  37. %th Address
  38. %th Status
  39. %th Decision
  40. - apps.each do |app|
  41. %tr
  42. %td.nowrap= short_date(app['date_received'])
  43. %td
  44. %a{ href: app['info_url']}
  45. = app['council_reference']
  46. %td= app['address']
  47. %td= cleanup(app['status'])
  48. %td= cleanup(app['decision'])