5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 11:06:23 +00:00

poder ver la url de invitaciones públicas

This commit is contained in:
f 2019-07-10 20:07:17 -03:00
parent 569553c43c
commit 0fee18550b
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
3 changed files with 13 additions and 5 deletions

View file

@ -18,11 +18,17 @@
= t(".#{u.to_s}") = t(".#{u.to_s}")
.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.text'), = 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 btn-success', class: 'btn btn-success',
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?
= link_to t('.public_invite'),
site_collaborate_path(@site),
class: 'btn btn-info',
data: { toggle: 'tooltip' },
title: t('.help.public_invite')
%p= t(".help.#{u.to_s}") %p= t(".help.#{u.to_s}")
%table.table.table-striped.table-condensed %table.table.table-striped.table-condensed
%tbody %tbody

View file

@ -277,6 +277,7 @@ en:
demote: Removes privileges for this user demote: Removes privileges for this user
promote: Gives privileges to this guest promote: Gives privileges to this guest
invite: 'Invites %{invite_as} to this site' invite: 'Invites %{invite_as} to this site'
public_invite: Copy this address and share it with everyone you want to accept public collaborations. These guests can only create and modify their own posts and any change needs to be approved.
title: Users and Guests title: Users and Guests
usuaries: Users usuaries: Users
invitades: Guests invitades: Guests
@ -291,8 +292,8 @@ en:
promote: promote:
text: 'Convert to user' text: 'Convert to user'
confirm: 'Convert to user? They will gain full access to self-manage this site.' confirm: 'Convert to user? They will gain full access to self-manage this site.'
invite: invite: 'Invite'
text: 'Invite' public_invite: 'Open collaborations'
invited: Awaiting confirmation invited: Awaiting confirmation
invite: invite:
title: 'Invite %{invite_as}' title: 'Invite %{invite_as}'

View file

@ -278,6 +278,7 @@ es:
demote: Quita privilegios a este usuarie demote: Quita privilegios a este usuarie
promote: Otorga privilegios a este invitade promote: Otorga privilegios a este invitade
invite: 'Invita %{invite_as} a colaborar en este sitio' invite: 'Invita %{invite_as} a colaborar en este sitio'
public_invite: Copia esta dirección para compartir con quien quieras y aceptar colaboraciones públicas. Les invitades solo podrán crear y modificar sus propios artículos y cualquier cambio deberá ser aprobado.
title: Usuaries e invitades title: Usuaries e invitades
usuaries: Usuaries usuaries: Usuaries
invitades: Invitades invitades: Invitades
@ -292,9 +293,9 @@ es:
promote: promote:
text: 'Convertir en usuarie' text: 'Convertir en usuarie'
confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.' confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.'
invite: invite: 'Invitar'
text: 'Invitar'
invited: Esperando confirmación invited: Esperando confirmación
public_invite: 'Colaboración abierta'
invite: invite:
title: 'Invitar %{invite_as}' title: 'Invitar %{invite_as}'
help: help: