diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index 1de745cdf..95b1660aa 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -29,14 +29,13 @@
- <% if poll.questions.count == 1 %> - <% poll.questions.each do |question| %> -

<%= link_to_poll question.title, poll %>

- <%= poll_dates(poll) %> - <% end %> + <% if poll.questions.one? %> +

<%= link_to_poll poll.questions.first.title, poll %>

+ <%= poll_dates(poll) %> <% else %>

<%= link_to_poll poll.name, poll %>

<%= poll_dates(poll) %> +