5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 05:06:20 +00:00

acomodar la sección de usuaries al resto del sitio

This commit is contained in:
f 2021-05-09 13:12:22 -03:00
parent c2b150df12
commit f3fcf11da3
2 changed files with 19 additions and 24 deletions

View file

@ -1,13 +1,10 @@
.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}")
%h2.mt-5= t(".#{u}")
.btn-group{ role: 'group', 'aria-label': t('.actions') }
- if @policy.invite?
= link_to t('.invite'),
@ -21,7 +18,7 @@
class: 'btn',
data: { toggle: 'tooltip' },
title: t('.help.public_invite')
%p= t(".help.#{u}")
%p.lead= t(".help.#{u}")
%table.table.table-condensed
%tbody
- @site.send(u).each do |cuenta|

View file

@ -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