|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- %h1= auth['authority_name']
-
- %h2 Summary
-
- %table
- %thead
- %tr
- %th Status
- %th Decision
- %th Appeal status
- %th Appeal decision
- %th Quantity
- %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= 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 Proposal
- %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= app['description']
- %td= cleanup(app['status'])
- %td= cleanup(app['decision'])
|