Use proposal_poll_path on communities poll links

This commit is contained in:
decabeza
2019-04-26 18:50:02 +02:00
parent 55fb14c6e3
commit de72b65151
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<div class="community-poll">
<h4>
<%= link_to poll.title, poll %>
<%= link_to poll.title, proposal_poll_path(@community.proposal, poll) %>
</h4>
<p class="topic-info">

View File

@@ -46,7 +46,9 @@
<div class="sidebar-divider"></div>
<h2><%= t("communities.show.surveys") %></h2>
<%= link_to t("communities.show.complete_survey"),
@community.proposal.polls.current.first, class: "button expanded hollow" %>
proposal_poll_path(@community.proposal,
@community.proposal.polls.current.first),
class: "button expanded hollow" %>
<% end %>
</aside>
</div>