This way we won't have to add the `inline-block` and `no-bullet` classes to other elements and we can define the styles in one place. Note we're using the `ul.tags` selector instead of just `.tags` to avoid conflicts with a `div.tags` selector which is used to select tags in a form. Renaming the selector to `.tag-list` would be better, but we aren't doing so because it would break custom stylesheets using that selector. Also note we're keeping the %tags placeholder selector in `.tags` selector in the participation.scss file. This is so styles are not overwritten by selectors like `.debate-show ul li`, which has the same specifity as `ul.tags li`.
34 lines
961 B
Plaintext
34 lines
961 B
Plaintext
<div class="expanded no-margin-top polls-show-header">
|
|
<div class="row">
|
|
<div class="small-12 medium-9 column padding">
|
|
<% if @poll.related.nil? %>
|
|
<%= back_link_to polls_path, t("polls.show.back") %>
|
|
<% else %>
|
|
<%= link_to t("polls.poll_header.back_to_proposal"), [@poll.related] %>
|
|
<% end %>
|
|
|
|
<h1><%= @poll.name %></h1>
|
|
|
|
<%= auto_link_already_sanitized_html simple_format(@poll.summary) %>
|
|
|
|
<% if @poll.geozones.any? %>
|
|
<ul class="margin-top tags">
|
|
<% @poll.geozones.each do |g| %>
|
|
<li><span><%= g.name %></span></li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
</div>
|
|
|
|
<aside class="small-12 medium-3 column margin-top">
|
|
<%= render "shared/social_share",
|
|
share_title: t("shared.share"),
|
|
title: @poll.name,
|
|
url: poll_url(@poll),
|
|
description: @poll.name,
|
|
mobile: @poll.name
|
|
%>
|
|
</aside>
|
|
</div>
|
|
</div>
|