Files
nairobi/app/views/legislation/processes/summary.html.erb
Javi Martín b2b64ca8a0 Add link to download summary in XLSX format again
It was removed in commit 128a8164 alongside everything related to the
legislation process summary.

Co-Authored-By: taitus <sebastia.roig@gmail.com>
2020-09-08 13:32:08 +02:00

30 lines
1010 B
Plaintext

<% provide(:title) { @process.title } %>
<%= render "legislation/processes/header", process: @process, header: :full %>
<%= render "key_dates", process: @process, phase: @phase %>
<% if @process.debate_phase.enabled? || @process.proposals_phase.enabled? || @process.allegations_phase.enabled? %>
<section class="process-summary">
<%= link_to t("legislation.summary.download"),
summary_legislation_process_path(@process, format: :xlsx),
class: "button hollow download-button" %>
<% if @process.debate_phase.enabled? %>
<%= render "summary_debate", questions: @process.questions %>
<% end %>
<% if @process.proposals_phase.enabled? %>
<%= render "summary_proposals", proposals: @proposals %>
<% end %>
<% if @process.allegations_phase.enabled? %>
<%= render "summary_allegations", comments: @comments %>
<% end %>
</section>
<% else %>
<div class="callout primary">
<p><%= t("legislation.summary.process_empty") %></p>
</div>
<% end %>