mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:16:22 +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
|
.row.justify-content-center
|
||||||
.col
|
.col.col-md-8
|
||||||
%h1= t('.title')
|
%h1= t('.title')
|
||||||
|
|
||||||
.row
|
|
||||||
.col
|
|
||||||
-# Una tabla de usuaries y otra de invitades, con acciones
|
-# Una tabla de usuaries y otra de invitades, con acciones
|
||||||
- %i[usuaries invitades].each do |u|
|
- %i[usuaries invitades].each do |u|
|
||||||
%h2
|
%h2.mt-5= t(".#{u}")
|
||||||
= t(".#{u}")
|
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
||||||
.btn-group{ role: 'group', 'aria-label': t('.actions') }
|
- if @policy.invite?
|
||||||
- if @policy.invite?
|
= link_to t('.invite'),
|
||||||
= link_to t('.invite'),
|
site_usuaries_invite_path(@site, invite_as: u.to_s),
|
||||||
site_usuaries_invite_path(@site, invite_as: u.to_s),
|
class: 'btn',
|
||||||
class: 'btn',
|
data: { toggle: 'tooltip' },
|
||||||
data: { toggle: 'tooltip' },
|
title: t('.help.invite', invite_as: u.to_s)
|
||||||
title: t('.help.invite', invite_as: u.to_s)
|
- if policy(Collaboration.new(@site)).collaborate?
|
||||||
- if policy(Collaboration.new(@site)).collaborate?
|
= link_to t('.public_invite'),
|
||||||
= link_to t('.public_invite'),
|
site_collaborate_path(@site),
|
||||||
site_collaborate_path(@site),
|
class: 'btn',
|
||||||
class: 'btn',
|
data: { toggle: 'tooltip' },
|
||||||
data: { toggle: 'tooltip' },
|
title: t('.help.public_invite')
|
||||||
title: t('.help.public_invite')
|
%p.lead= t(".help.#{u}")
|
||||||
%p= t(".help.#{u}")
|
|
||||||
%table.table.table-condensed
|
%table.table.table-condensed
|
||||||
%tbody
|
%tbody
|
||||||
- @site.send(u).each do |cuenta|
|
- @site.send(u).each do |cuenta|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
- invite_as = t("usuaries.invite_as.#{params[:invite_as]}")
|
||||||
|
|
||||||
.row
|
.row.justify-content-center
|
||||||
.col
|
.col.col-md-8
|
||||||
%h1= t('.title', invite_as: invite_as)
|
%h1= t('.title', invite_as: invite_as)
|
||||||
|
|
||||||
.row
|
|
||||||
.col
|
|
||||||
= form_with url: site_usuaries_invite_path(@site), local: true do |f|
|
= form_with url: site_usuaries_invite_path(@site), local: true do |f|
|
||||||
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
= f.hidden_field :invited_as, value: params[:invite_as].singularize
|
||||||
.form-group
|
.form-group
|
||||||
|
|
Loading…
Reference in a new issue