Remove unused code for legislation proposals votes

In these commits 38ba5e159b and 8805037e2f we added the parameter
"vote_url" in the call to the partial "votes" in collaborative legislation
proposals.

It seems that this parameter is only used in the proposals module and not in
collaborative legislation proposals.

While it is true that in the partial "votes" in these commits this parameter
"vote_url" is referred to, in commit 276baedcf it seems to be removed.

For this reason, we remove the parameter.
This commit is contained in:
taitus
2023-06-27 14:44:54 +02:00
parent 90ddd99751
commit ab2c548964
2 changed files with 2 additions and 4 deletions

View File

@@ -64,8 +64,7 @@
</div>
<div id="<%= dom_id(proposal) %>_votes" class="small-12 medium-3 column">
<%= render "legislation/proposals/votes",
{ proposal: proposal, vote_url: vote_legislation_process_proposal_path(proposal.legislation_process_id, proposal, value: "yes") } %>
<%= render "legislation/proposals/votes", proposal: proposal %>
</div>
</div>
</div>

View File

@@ -105,8 +105,7 @@
<div class="sidebar-divider"></div>
<h2><%= t("votes.supports") %></h2>
<div id="<%= dom_id(@proposal) %>_votes">
<%= render "votes",
{ proposal: @proposal, vote_url: vote_legislation_process_proposal_path(@proposal.legislation_process_id, @proposal, value: "yes") } %>
<%= render "votes", proposal: @proposal %>
</div>
<%= render "shared/social_share",
share_title: t("proposals.show.share"),