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.

authority.haml 1.1 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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
  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 Applications
  21. %p
  22. - csv_fn = slug(auth['authority_name']) + '.csv'
  23. %a.button{ :href => csv_fn, :download => csv_fn }
  24. Download CSV data
  25. %table
  26. %thead
  27. %tr
  28. %th Received
  29. %th Reference
  30. %th Address
  31. %th Status
  32. %th Decision
  33. - apps.each do |app|
  34. %tr
  35. %td= short_date(app['date_received'])
  36. %td
  37. %a{ href: app['info_url']}
  38. = app['council_reference']
  39. %td= app['address']
  40. %td= cleanup(app['status'])
  41. %td= cleanup(app['decision'])