5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 02:36:22 +00:00

feat: apartado de instancias dentro de actividades de moderación #15091

This commit is contained in:
maki 2024-02-06 17:22:44 -03:00
parent 6b0d2ded91
commit ab1186d08a
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,11 @@
- host = instance['domain']
- host ||= instance['uri']
- host = "https://#{host}"
%a{href: host}= instance['title']
%p= instance['description']
%span Users:
%span
= instance.dig('usage', 'users', 'active_month')
= instance.dig('stats', 'user_count')

View file

@ -9,7 +9,9 @@
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
= render 'moderation_queue/button_box', btn_params: @instances_btn_params
- @instances.each do |instance|
= render 'moderation_queue/instance', instance: instance
= render 'moderation_queue/button_box', btn_params: @instances_btn_params
%h3.cyan.mt-5= t('moderation_queue.instances.title')
%p.pb-2= t('moderation_queue.instances.description')