hides the retire proposal link for admins in User#show

This commit is contained in:
kikito
2016-06-23 17:48:18 +02:00
parent 577a7435a9
commit 73d3d0c8c3

View File

@@ -12,9 +12,7 @@
<%= link_to t("users.proposals.send_notification"), new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
</td>
<% end %>
<% if author_or_admin? %>
<td class="text-center">
<% if proposal.retired? %>
<span class="label alert"><%= t('users.proposals.retired') %></span>
@@ -30,4 +28,4 @@
<% end %>
</table>
<%= paginate @proposals %>
<%= paginate @proposals %>