shows always questions lists and button to participate on poll index
This commit is contained in:
@@ -15,12 +15,19 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column margin-top">
|
||||
<h3 class="section-title-divider"><%= t("polls.index.no_geozone_restricted") %></h3>
|
||||
<h3 class="section-title-divider"><%= t("polls.index.geozone_restricted") %></h3>
|
||||
<% @polls.each do |poll| %>
|
||||
<div class="poll">
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<h3><%= link_to poll.name, poll %></h3>
|
||||
<p class="dates"><%= poll_dates(poll) %></p>
|
||||
<div class="dates"><%= poll_dates(poll) %></div>
|
||||
<h4 class="inline-block"><%= link_to poll.name, poll %></h4>
|
||||
<ul>
|
||||
<% poll.questions.each do |question| %>
|
||||
<li><%= link_to question.title, question_path(question) %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<ul class="no-bullet margin-top tags">
|
||||
<% poll.geozones.each do |g| %>
|
||||
<li class="inline-block"><span><%= g.name %></span></li>
|
||||
@@ -28,11 +35,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="small-12 column">
|
||||
<% if can? :answer, poll %>
|
||||
<%= link_to t("polls.index.participate_button"), poll, class: "button" %>
|
||||
<% else %>
|
||||
<%= link_to t("polls.index.view_button"), poll %>
|
||||
<% end %>
|
||||
<%= link_to t("polls.index.participate_button"), poll, class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user