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.
 
 
 
 
 

48 lines
963 B

  1. %h1= auth['authority_name']
  2. %h2 Summary
  3. %table
  4. %thead
  5. %tr
  6. %th Status
  7. %th Decision
  8. %th Appeal status
  9. %th Appeal decision
  10. %th Quantity
  11. %tbody
  12. - summary.each do |row|
  13. %tr
  14. %td= cleanup(row['status'])
  15. %td= cleanup(row['decision'])
  16. %td= cleanup(row['appeal_status'])
  17. %td= cleanup(row['appeal_decision'])
  18. %td= row['qty']
  19. %h2 Applications
  20. %p
  21. - csv_fn = slug(auth['authority_name']) + '.csv'
  22. %a.button{ :href => csv_fn, :download => csv_fn }
  23. Download CSV data
  24. %table
  25. %thead
  26. %tr
  27. %th Received
  28. %th Reference
  29. %th Address
  30. -# %th Proposal
  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= app['description']
  41. %td= cleanup(app['status'])
  42. %td= cleanup(app['decision'])