From de72b6515148f396502f7952bd8ece309434d175 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 26 Apr 2019 18:50:02 +0200 Subject: [PATCH] Use proposal_poll_path on communities poll links --- app/views/communities/_poll.html.erb | 2 +- app/views/communities/show.html.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/communities/_poll.html.erb b/app/views/communities/_poll.html.erb index 6239a5cca..4e6b6242c 100644 --- a/app/views/communities/_poll.html.erb +++ b/app/views/communities/_poll.html.erb @@ -1,6 +1,6 @@

- <%= link_to poll.title, poll %> + <%= link_to poll.title, proposal_poll_path(@community.proposal, poll) %>

diff --git a/app/views/communities/show.html.erb b/app/views/communities/show.html.erb index d60d914d3..91b70dd62 100644 --- a/app/views/communities/show.html.erb +++ b/app/views/communities/show.html.erb @@ -46,7 +46,9 @@

<%= t("communities.show.surveys") %>

<%= 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 %>