5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:36:21 +00:00
panel/app/views/moderation_queue/_instance.haml

20 lines
738 B
Text
Raw Normal View History

2024-02-28 19:42:18 +00:00
- usuaries = instance.content.dig('usage', 'users', 'active_month')
- usuaries ||= instance.content.dig('stats', 'user_count')
.row.no-gutters.pt-2
.col-1
= render 'components/checkbox', id: instance.hostname, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
.col-11
%h4
2024-02-28 19:42:18 +00:00
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
2024-03-04 16:17:21 +00:00
.content
= sanitize instance.content['description']
2024-02-28 19:42:18 +00:00
- if usuaries.present?
%dl
%dt.d-inline= t('.users')
2024-03-04 16:17:21 +00:00
%dd.d-inline= text_plain usuaries.to_s
-# Botones moderación
.d-flex.pb-4
= render 'components/instances_btn_box', instance_moderation: instance_moderation