5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 07:16:21 +00:00

fix: facilitar la búsqueda de instancias en la lista #15563

This commit is contained in:
f 2024-03-13 16:55:34 -03:00
parent 93140f37aa
commit ac38343a21
No known key found for this signature in database

View file

@ -1,12 +1,17 @@
- usuaries = instance.content.dig('usage', 'users', 'active_month')
- usuaries ||= instance.content.dig('stats', 'user_count')
- title = sanitize(instance.content['title'])
- title ||= instance.hostname
.row.no-gutters.pt-2
.col-1
= render 'components/checkbox', id: instance.hostname, form: form, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
.col-11
%h4
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
%a{ href: instance.uri }
= title
- if title.present?
= " (#{instance.hostname})".html_safe
.content
= sanitize instance.content['description']
- if usuaries.present?