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

fix: corregidos botones y espacios en details de instancias

This commit is contained in:
jazzari 2024-02-20 14:23:16 -03:00
parent ecab598595
commit 5ee9c49529
5 changed files with 22 additions and 17 deletions

View file

@ -1,3 +1,3 @@
-# Componente Botón general Moderación
%button.btn.btn-lg.mx-2{ href: href, class: local_assigns[:class] }= text
%button.btn.mx-2{ href: href, class: local_assigns[:class] }= text

View file

@ -1,9 +1,8 @@
-# Componente Botonera de Comentarios
.d-flex.py-4
- btn_class = 'btn-secondary'
= render 'components/btn_base', text: t('.text_pause'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reject'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_accept'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reply'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_report'), class: btn_class, href: ''
- btn_class = 'btn-secondary'
= render 'components/btn_base', text: t('.text_pause'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reject'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_accept'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reply'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_report'), class: btn_class, href: ''

View file

@ -2,10 +2,15 @@
- host ||= instance['uri']
- host = "https://#{host}"
%a{ href: host }= instance['title']
%p= instance['description'].html_safe
%p
%span= t('.users')
%span
= instance.dig('usage', 'users', 'active_month')
= instance.dig('stats', 'user_count')
.row.no-gutters.pt-2
.col-1
= render 'components/checkbox'
.col-11
%h4
%a{ href: host }= instance['title']
%p= instance['description'].html_safe
%p
%span= t('.users')
%span
= instance.dig('usage', 'users', 'active_month')
= instance.dig('stats', 'user_count')

View file

@ -5,8 +5,9 @@
= render 'moderation_queue/instance', instance: instance
-# Botones moderación
.d-flex.py-5
.d-flex.pb-4
= render 'components/instances_btn_box'
%hr
%h3.mt-5= t('moderation_queue.instances.title')
%lead= t('moderation_queue.instances.description')

View file

@ -5,5 +5,5 @@
= render 'moderation_queue/comment', comment: comment, profile: comment['attributedTo']
-# Botones moderación
.d-flex.py-4
.d-flex
= render 'components/comments_btn_box'