Fixes heading structure and i18n format on legislation processes

This commit is contained in:
decabeza
2018-02-14 17:06:26 +01:00
parent c0c4d9e01f
commit f7c7f0201a
2 changed files with 15 additions and 14 deletions

View File

@@ -86,7 +86,8 @@
background: #e5ecf2;
padding-top: 1rem;
h5 {
h4 {
font-size: rem-calc(16);
margin-left: 0.25rem;
margin-bottom: 0;
color: #61686e;

View File

@@ -7,8 +7,8 @@
</div>
<div class="small-12 medium-4 column">
<%= link_to process, class: "button hollow big expanded", title: t('.see_latest_comments_title') do %>
<span class="icon-comments"></span>&nbsp; <%= t('.see_latest_comments') %>
<%= link_to process, class: "button hollow big expanded", title: t(".see_latest_comments_title") do %>
<span class="icon-comments"></span>&nbsp; <%= t(".see_latest_comments") %>
<% end %>
</div>
@@ -21,43 +21,43 @@
<% column_width = 12 / process.enabled_phases_and_publications_count %>
<div class="column row">
<div class="small-12 column legislation-calendar-info">
<p><%= t('legislation.processes.shared.key_dates') %></p>
<p><%= t("legislation.processes.shared.key_dates") %></p>
</div>
</div>
<div class="column row small-collapse medium-uncollapse legislation-calendar">
<% if process.debate_phase.enabled? %>
<div class="small-6 medium-<%= column_width %> column">
<h5><%= t('legislation.processes.shared.debate_dates') %></h5>
<p><%= format_date(process.debate_start_date) %> - <%= format_date(process.debate_end_date) %></p>
<h4><%= t("legislation.processes.shared.debate_dates") %></h4>
<p><%= format_date(process.debate_start_date) %> - <%= format_date(process.debate_end_date) %></p>
</div>
<% end %>
<% if process.draft_publication.enabled? %>
<div class="small-6 medium-<%= column_width %> column">
<h5><%= t('legislation.processes.shared.draft_publication_date') %></h5>
<p><%= format_date(process.draft_publication_date) %></p>
<h4><%= t("legislation.processes.shared.draft_publication_date") %></h4>
<p><%= format_date(process.draft_publication_date) %></p>
</div>
<% end %>
<% if process.proposals_phase.enabled? %>
<div class="small-6 medium-<%= column_width %> column">
<h5><%= t('legislation.processes.shared.proposals_dates') %></h5>
<p><%= format_date(process.proposals_phase_start_date) %> - <%= format_date(process.proposals_phase_end_date) %></p>
<h4><%= t("legislation.processes.shared.proposals_dates") %></h4>
<p><%= format_date(process.proposals_phase_start_date) %> - <%= format_date(process.proposals_phase_end_date) %></p>
</div>
<% end %>
<% if process.allegations_phase.enabled? %>
<div class="small-6 medium-<%= column_width %> column">
<h5><%= t('legislation.processes.shared.allegations_dates') %></h5>
<p><%= format_date(process.allegations_start_date) %> - <%= format_date(process.allegations_end_date) %></p>
<h4><%= t("legislation.processes.shared.allegations_dates") %></h4>
<p><%= format_date(process.allegations_start_date) %> - <%= format_date(process.allegations_end_date) %></p>
</div>
<% end %>
<% if process.result_publication.enabled? %>
<div class="small-6 medium-<%= column_width %> column">
<h5><%= t('legislation.processes.shared.result_publication_date') %></h5>
<p><%= format_date(process.result_publication_date) %></p>
<h4><%= t("legislation.processes.shared.result_publication_date") %></h4>
<p><%= format_date(process.result_publication_date) %></p>
</div>
<% end %>
</div>