mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-29 15:56:21 +00:00
fix: mostrar los botones de invitación en una sola línea
This commit is contained in:
parent
453798dcc7
commit
1128f04954
1 changed files with 27 additions and 26 deletions
|
@ -29,29 +29,30 @@
|
||||||
= site.title
|
= site.title
|
||||||
%p.lead= site.description
|
%p.lead= site.description
|
||||||
%br
|
%br
|
||||||
= link_to t('.visit'), site.url, class: 'btn btn-secondary'
|
.d-flex.flex-row
|
||||||
- if rol.temporal
|
= link_to t('.visit'), site.url, class: 'btn btn-secondary'
|
||||||
= button_to t('sites.invitations.accept'),
|
- if rol.temporal
|
||||||
site_usuaries_accept_invitation_path(site),
|
= button_to t('sites.invitations.accept'),
|
||||||
method: :patch,
|
site_usuaries_accept_invitation_path(site),
|
||||||
title: t('help.sites.invitations.accept'),
|
method: :patch,
|
||||||
class: 'btn btn-secondary'
|
title: t('help.sites.invitations.accept'),
|
||||||
= button_to t('sites.invitations.reject'),
|
class: 'btn btn-secondary'
|
||||||
site_usuaries_reject_invitation_path(site),
|
= button_to t('sites.invitations.reject'),
|
||||||
method: :patch,
|
site_usuaries_reject_invitation_path(site),
|
||||||
title: t('help.sites.invitations.reject'),
|
method: :patch,
|
||||||
class: 'btn btn-secondary'
|
title: t('help.sites.invitations.reject'),
|
||||||
- else
|
class: 'btn btn-secondary'
|
||||||
- if policy(site).show?
|
- else
|
||||||
= render 'layouts/btn_with_tooltip',
|
- if policy(site).show?
|
||||||
tooltip: t('help.sites.edit_posts'),
|
= render 'layouts/btn_with_tooltip',
|
||||||
type: 'success',
|
tooltip: t('help.sites.edit_posts'),
|
||||||
link: site_path(site),
|
type: 'success',
|
||||||
text: t('sites.posts')
|
link: site_path(site),
|
||||||
- if policy(SiteUsuarie.new(site, current_usuarie)).index?
|
text: t('sites.posts')
|
||||||
= render 'layouts/btn_with_tooltip',
|
- if policy(SiteUsuarie.new(site, current_usuarie)).index?
|
||||||
tooltip: t('usuaries.index.help.self'),
|
= render 'layouts/btn_with_tooltip',
|
||||||
text: t('usuaries.index.title'),
|
tooltip: t('usuaries.index.help.self'),
|
||||||
type: 'info',
|
text: t('usuaries.index.title'),
|
||||||
link: site_usuaries_path(site)
|
type: 'info',
|
||||||
= render 'sites/build', site: site
|
link: site_usuaries_path(site)
|
||||||
|
= render 'sites/build', site: site
|
||||||
|
|
Loading…
Reference in a new issue