mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 18:01:42 +00:00
acomodar la sección de usuaries al resto del sitio
This commit is contained in:
parent
c2b150df12
commit
f3fcf11da3
2 changed files with 19 additions and 24 deletions
|
@ -1,27 +1,24 @@
|
|||
.row
|
||||
.col
|
||||
.row.justify-content-center
|
||||
.col.col-md-8
|
||||
%h1= t('.title')
|
||||
|
||||
.row
|
||||
.col
|
||||
-# Una tabla de usuaries y otra de invitades, con acciones
|
||||
- %i[usuaries invitades].each do |u|
|
||||
%h2
|
||||
= t(".#{u}")
|
||||
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
||||
- if @policy.invite?
|
||||
= link_to t('.invite'),
|
||||
site_usuaries_invite_path(@site, invite_as: u.to_s),
|
||||
class: 'btn',
|
||||
data: { toggle: 'tooltip' },
|
||||
title: t('.help.invite', invite_as: u.to_s)
|
||||
- if policy(Collaboration.new(@site)).collaborate?
|
||||
= link_to t('.public_invite'),
|
||||
site_collaborate_path(@site),
|
||||
class: 'btn',
|
||||
data: { toggle: 'tooltip' },
|
||||
title: t('.help.public_invite')
|
||||
%p= t(".help.#{u}")
|
||||
%h2.mt-5= t(".#{u}")
|
||||
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
||||
- if @policy.invite?
|
||||
= link_to t('.invite'),
|
||||
site_usuaries_invite_path(@site, invite_as: u.to_s),
|
||||
class: 'btn',
|
||||
data: { toggle: 'tooltip' },
|
||||
title: t('.help.invite', invite_as: u.to_s)
|
||||
- if policy(Collaboration.new(@site)).collaborate?
|
||||
= link_to t('.public_invite'),
|
||||
site_collaborate_path(@site),
|
||||
class: 'btn',
|
||||
data: { toggle: 'tooltip' },
|
||||
title: t('.help.public_invite')
|
||||
%p.lead= t(".help.#{u}")
|
||||
%table.table.table-condensed
|
||||
%tbody
|
||||
- @site.send(u).each do |cuenta|
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
||||
|
||||
.row
|
||||
.col
|
||||
.row.justify-content-center
|
||||
.col.col-md-8
|
||||
%h1= t('.title', invite_as: invite_as)
|
||||
|
||||
.row
|
||||
.col
|
||||
= form_with url: site_usuaries_invite_path(@site), local: true do |f|
|
||||
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
||||
.form-group
|
||||
|
|
Loading…
Reference in a new issue