undo changes on poll title links

This commit is contained in:
decabeza
2017-10-23 13:02:37 +02:00
parent b1e91cdc03
commit f38f333fe5

View File

@@ -19,27 +19,11 @@
<div class="dates"></div>
<% if poll.questions.count == 1 %>
<% poll.questions.each do |question| %>
<h4>
<% if poll.results_enabled? %>
<%= link_to question.title, poll_results_path(poll) %>
<% elsif poll.stats_enabled? %>
<%= link_to question.title, poll_stats_path(poll) %>
<% else %>
<%= link_to question.title, poll %>
<% end %>
</h4>
<h4><%= link_to question.title, poll %></h4>
<%= poll_dates(poll) %>
<% end %>
<% else %>
<h4>
<% if poll.results_enabled? %>
<%= link_to poll.name, poll_results_path(poll) %>
<% elsif poll.stats_enabled? %>
<%= link_to poll.name, poll_stats_path(poll) %>
<% else %>
<%= link_to poll.name, poll %>
<% end %>
</h4>
<h4><%= link_to poll.name, poll %></h4>
<%= poll_dates(poll) %>
<ul class="margin-top">
<% poll.questions.each do |question| %>