diff --git a/app/views/proposals/created.html.erb b/app/views/proposals/created.html.erb index 3e0bf2c63..bd9cdfd3d 100644 --- a/app/views/proposals/created.html.erb +++ b/app/views/proposals/created.html.erb @@ -5,8 +5,8 @@ <%= raw t('.motivation') %> - <%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can? :dashboard, @proposal %> - <%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can? :publish, @proposal %> + <%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can?(:dashboard, @proposal) %> + <%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can?(:publish, @proposal) %> diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb index daf38468b..6c1a0a3cd 100644 --- a/app/views/proposals/share.html.erb +++ b/app/views/proposals/share.html.erb @@ -27,7 +27,7 @@ description: @proposal.summary } %> - <% if can? :dashboard, @proposal %> + <% if can?(:dashboard, @proposal) %>
<%= t('.improve_it') %>