%h1= auth['authority_name'] %h2 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. %table %thead %tr %th Status %th Decision %th Appeal status %th Appeal decision %th Applications %tbody - summary.each do |row| %tr %td= cleanup(row['status']) %td= cleanup(row['decision']) %td= cleanup(row['appeal_status']) %td= cleanup(row['appeal_decision']) %td.right= row['qty'] %h2 Applications %p - csv_fn = slug(auth['authority_name']) + '.csv' %a.button{ :href => csv_fn, :download => csv_fn } Download CSV data %table %thead %tr %th Received %th Reference %th Address %th Status %th Decision - apps.each do |app| %tr %td= short_date(app['date_received']) %td %a{ href: app['info_url']} = app['council_reference'] %td= app['address'] %td= cleanup(app['status']) %td= cleanup(app['decision'])