mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 02:26:23 +00:00
feat: apartado de instancias dentro de actividades de moderación #15091
This commit is contained in:
parent
6b0d2ded91
commit
ab1186d08a
2 changed files with 14 additions and 1 deletions
11
app/views/moderation_queue/_instance.haml
Normal file
11
app/views/moderation_queue/_instance.haml
Normal 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')
|
|
@ -9,6 +9,8 @@
|
|||
= 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: '/'
|
||||
|
||||
- @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')
|
||||
|
|
Loading…
Reference in a new issue