We're choosing the default `with_first_argument` style because it's the one we use the most.
30 lines
1.0 KiB
Plaintext
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 %>
|