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

10 lines
442 B
Text
Raw Normal View History

2024-03-21 21:12:12 +00:00
- 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')