From 73d3d0c8c30b745bd4ba701fdb772872b572ffe6 Mon Sep 17 00:00:00 2001 From: kikito Date: Thu, 23 Jun 2016 17:48:18 +0200 Subject: [PATCH] hides the retire proposal link for admins in User#show --- app/views/users/_proposals.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/users/_proposals.html.erb b/app/views/users/_proposals.html.erb index f50045635..3112dd572 100644 --- a/app/views/users/_proposals.html.erb +++ b/app/views/users/_proposals.html.erb @@ -12,9 +12,7 @@ <%= link_to t("users.proposals.send_notification"), new_proposal_notification_path(proposal_id: proposal.id), class: 'button hollow' %> - <% end %> - <% if author_or_admin? %> <% if proposal.retired? %> <%= t('users.proposals.retired') %> @@ -30,4 +28,4 @@ <% end %> -<%= paginate @proposals %> \ No newline at end of file +<%= paginate @proposals %>