%h1 Summary

%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
  - csv_fn = 'inlink-summary.csv'
  %a.button{ :href => csv_fn, :download => csv_fn }
    Download summary CSV data
   
  - csv_fn = 'inlink-full.csv'
  %a.button{ :href => csv_fn, :download => csv_fn }
    Download full CSV data

%table
  %thead
    %tr
      %th Authority
      %th Status
      %th Decision
      %th  
      %th  
      %th Applications
  %tbody
  - summary.each do |row|
    %tr
      %td
        %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']