mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 07:16:21 +00:00
feat: tarjeta cacheada de instancia
This commit is contained in:
parent
448564aa46
commit
17705f66ad
2 changed files with 12 additions and 9 deletions
|
@ -1,15 +1,17 @@
|
||||||
|
- usuaries = instance.content.dig('usage', 'users', 'active_month')
|
||||||
|
- usuaries ||= instance.content.dig('stats', 'user_count')
|
||||||
|
|
||||||
.row.no-gutters.pt-2
|
.row.no-gutters.pt-2
|
||||||
.col-1
|
.col-1
|
||||||
= render 'components/checkbox', id: instance.hostname, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
= render 'components/checkbox', id: instance.hostname, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
||||||
.col-11
|
.col-11
|
||||||
%h4
|
%h4
|
||||||
%a{ href: instance.uri }= instance.content['title']
|
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
|
||||||
%p= instance.content['description'].html_safe
|
%p= sanitize instance.content['description']
|
||||||
|
- if usuaries.present?
|
||||||
%dl
|
%dl
|
||||||
%dt.d-inline= t('.users')
|
%dt.d-inline= t('.users')
|
||||||
%dd.d-inline
|
%dd.d-inline= sanitize usuaries.to_s
|
||||||
= instance.content.dig('usage', 'users', 'active_month')
|
|
||||||
= instance.content.dig('stats', 'user_count')
|
|
||||||
|
|
||||||
-# Botones moderación
|
-# Botones moderación
|
||||||
.d-flex.pb-4
|
.d-flex.pb-4
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
%h3= t('moderation_queue.nothing')
|
%h3= t('moderation_queue.nothing')
|
||||||
|
|
||||||
- instance_moderations.each do |instance_moderation|
|
- instance_moderations.each do |instance_moderation|
|
||||||
|
- cache [instance_moderation.aasm_state, instance_moderation.instance] do
|
||||||
%hr
|
%hr
|
||||||
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance
|
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue