5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:06:20 +00:00
panel/app/views/sites/_moderation_queue.haml

9 lines
442 B
Text

- if policy(ModerationQueue.new(site)).index?
- moderation_needed = site.moderation_needed?
- local_assigns[:class] = "btn btn-secondary #{local_assigns[:class]}"
= link_to site_moderation_queue_path(site), class: local_assigns[:class], title: (t('.moderation_needed') if moderation_needed) do
= t('moderation_queue.index.title')
- if moderation_needed
%span.primary ⏺
%span.sr-only= t('.moderation_needed')