Shows flag actions div only if user can hide
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<div class="reply">
|
||||
<% if can? :hide, (notification || notification.author) %>
|
||||
<div class="reply">
|
||||
<span class='js-moderation-actions'>
|
||||
<% if can? :hide, notification %>
|
||||
<%= link_to t("admin.actions.hide").capitalize, hide_moderation_proposal_notification_path(notification),
|
||||
@@ -11,4 +12,5 @@
|
||||
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
||||
<% end %>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user