Files
nairobi/app/views/dashboard/polls/_poll_header.html.erb
Juan Salvador Pérez García 2ce9f95283 Polls in the dashboard
A reduced version of polls has been added to the dashboard
2018-07-17 17:57:30 +02:00

26 lines
686 B
Plaintext

<%= link_to t("admin.polls.edit.title"),
edit_proposal_dashboard_poll_path(proposal, poll),
class: "button hollow float-right" %>
<h2 class="inline-block">
<%= poll.name %>
</h2>
<div class="clear"></div>
<div class="callout highlight">
<div class="inline-block">
<strong><%= t("admin.polls.index.dates") %></strong>
<br>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</div>
<% if poll.geozone_restricted %>
<div class="inline-block margin-left">
<strong><%= t("admin.polls.index.geozone_restricted") %></strong>
<br>
<%= poll.geozones.pluck(:name).to_sentence %>
</div>
<% end %>
</div>