<%= link_to process.title, process %>

<%= link_to process, class: "button hollow big expanded", title: t("legislation.processes.process.see_latest_comments_title") do %>   <%= t("legislation.processes.process.see_latest_comments") %> <% end %>
<%= markdown(process.summary.presence || first_paragraph(process.description)) %>
<%= render SDG::TagListComponent.new(process, limit: 5, linkable: false) %>
<% if process.enabled_phases_and_publications_count.positive? %> <% column_width = 12 / process.enabled_phases_and_publications_count %>

<%= t("legislation.processes.shared.key_dates") %>

<% if process.debate_phase.enabled? %>

<%= t("legislation.processes.shared.debate_dates") %>

<%= format_date(process.debate_start_date) %> - <%= format_date(process.debate_end_date) %>

<% end %> <% if process.draft_publication.enabled? %>

<%= t("legislation.processes.shared.draft_publication_date") %>

<%= format_date(process.draft_publication_date) %>

<% end %> <% if process.proposals_phase.enabled? %>

<%= t("legislation.processes.shared.proposals_dates") %>

<%= format_date(process.proposals_phase_start_date) %> - <%= format_date(process.proposals_phase_end_date) %>

<% end %> <% if process.allegations_phase.enabled? %>

<%= t("legislation.processes.shared.allegations_dates") %>

<%= format_date(process.allegations_start_date) %> - <%= format_date(process.allegations_end_date) %>

<% end %> <% if process.result_publication.enabled? %>

<%= t("legislation.processes.shared.result_publication_date") %>

<%= format_date(process.result_publication_date) %>

<% end %>
<% end %>