mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 10:46:22 +00:00
fix: facilitar la búsqueda de instancias en la lista #15563
This commit is contained in:
parent
93140f37aa
commit
ac38343a21
1 changed files with 6 additions and 1 deletions
|
@ -1,12 +1,17 @@
|
||||||
- usuaries = instance.content.dig('usage', 'users', 'active_month')
|
- usuaries = instance.content.dig('usage', 'users', 'active_month')
|
||||||
- usuaries ||= instance.content.dig('stats', 'user_count')
|
- usuaries ||= instance.content.dig('stats', 'user_count')
|
||||||
|
- title = sanitize(instance.content['title'])
|
||||||
|
- title ||= instance.hostname
|
||||||
|
|
||||||
.row.no-gutters.pt-2
|
.row.no-gutters.pt-2
|
||||||
.col-1
|
.col-1
|
||||||
= render 'components/checkbox', id: instance.hostname, form: form, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
= render 'components/checkbox', id: instance.hostname, form: form, name: 'instance_moderation[]', value: instance_moderation.id, data: { target: 'select-all.input' }
|
||||||
.col-11
|
.col-11
|
||||||
%h4
|
%h4
|
||||||
%a{ href: instance.uri }= sanitize(instance.content['title']) || instance.hostname
|
%a{ href: instance.uri }
|
||||||
|
= title
|
||||||
|
- if title.present?
|
||||||
|
= " (#{instance.hostname})".html_safe
|
||||||
.content
|
.content
|
||||||
= sanitize instance.content['description']
|
= sanitize instance.content['description']
|
||||||
- if usuaries.present?
|
- if usuaries.present?
|
||||||
|
|
Loading…
Reference in a new issue