The little menu with the hide notification link and block user link has been added to each proposal notification. JS for adding the fade efect has also been added.
15 lines
642 B
Plaintext
15 lines
642 B
Plaintext
<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),
|
|
method: :put, remote: true, data: { confirm: t('admin.actions.confirm') } %>
|
|
<% end %>
|
|
|
|
<% if can? :hide, notification.author %>
|
|
<span class="divider"> • </span>
|
|
<%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(notification.author_id),
|
|
method: :put, data: { confirm: t('admin.actions.confirm') } %>
|
|
<% end %>
|
|
</span>
|
|
</div>
|