%h1 Latest decisions

= download_button('inlink-decisions.csv')

%table
  %thead
    %tr
      %th Authority
      %th Reference
      %th Decided
      %th Address
      %th Decision
  %tbody
    - apps.each do |app|
      %tr
        %td.nowrap
          %a{ href: authority_url(app['authority_name']) }
            = app['authority_name']
        %td
          %a{ href: app['info_url']}
            = app['council_reference']
        %td.nowrap= short_date(app['date_decision'])
        %td= app['address']
        %td= cleanup(app['decision'])