mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:36: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
|
||||
.col-1
|
||||
= render 'components/checkbox', id: instance.hostname, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
||||
.col-11
|
||||
%h4
|
||||
%a{ href: instance.uri }= instance.content['title']
|
||||
%p= instance.content['description'].html_safe
|
||||
%dl
|
||||
%dt.d-inline= t('.users')
|
||||
%dd.d-inline
|
||||
= instance.content.dig('usage', 'users', 'active_month')
|
||||
= instance.content.dig('stats', 'user_count')
|
||||
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
|
||||
%p= sanitize instance.content['description']
|
||||
- if usuaries.present?
|
||||
%dl
|
||||
%dt.d-inline= t('.users')
|
||||
%dd.d-inline= sanitize usuaries.to_s
|
||||
|
||||
-# Botones moderación
|
||||
.d-flex.pb-4
|
||||
|
|
|
@ -12,8 +12,9 @@
|
|||
%h3= t('moderation_queue.nothing')
|
||||
|
||||
- instance_moderations.each do |instance_moderation|
|
||||
%hr
|
||||
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance
|
||||
- cache [instance_moderation.aasm_state, instance_moderation.instance] do
|
||||
%hr
|
||||
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance
|
||||
|
||||
%hr
|
||||
%div
|
||||
|
|
Loading…
Reference in a new issue