Files
nairobi/app/views/legislation/processes/summary.html.erb
Javi Martín 629e208e9d Add and apply ArgumentAlignment rubocop rule
We're choosing the default `with_first_argument` style because it's the
one we use the most.
2023-08-18 14:56:16 +02:00

30 lines
1.0 KiB
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 %>