Files
grecia/app/views/polls/_poll_header.html.erb
Juan Salvador Pérez García f5e5c62242 Changes in public view for porposal polls
Back to polls has dissapeared. A link 'Back to proposal' will be shown
instead.

The button that invites the user to take part in other polls has been
removed.

Stats will flagged as disabled when a poll for a proposal is created.
2018-07-17 17:59:11 +02:00

33 lines
956 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('.back_to_proposal'), [@poll.related] %>
<% end %>
<h2><%= @poll.name %></h2>
<%= safe_html_with_links simple_format(@poll.summary) %>
<% if @poll.geozones.any? %>
<ul class="no-bullet margin-top tags">
<% @poll.geozones.each do |g| %>
<li class="inline-block"><span><%= g.name %></span></li>
<% end %>
</ul>
<% end %>
</div>
<aside class="small-12 medium-3 column margin-top">
<%= render partial: 'shared/social_share', locals: {
share_title: t('shared.share'),
title: @poll.name,
url: poll_url(@poll),
description: @poll.name
} %>
</aside>
</div>
</div>