%h1 Summary

%p
  Last updated:
  = last_updated.strftime("%d %B %Y at %l:%M%P")

%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.

%p= download_button('inlink-summary.csv')

%table#summary
  %thead
    %tr
      %th Authority
      %th Status
      %th Decision
      %th  
      %th  
      %th Applications
  %tbody
  - summary.each do |row|
    %tr
      %td.nowrap
        %a{ href: authority_url(row['authority_name']) }
          = row['authority_name']
      %td= row['status']
      %td= row['decision']
      %td= cleanup(row['appeal_status'])
      %td= cleanup(row['appeal_decision'])
      %td.right= row['applications']