From 0fee18550b5002f6b7b22c74187225189b209c1e Mon Sep 17 00:00:00 2001 From: f Date: Wed, 10 Jul 2019 20:07:17 -0300 Subject: [PATCH] =?UTF-8?q?poder=20ver=20la=20url=20de=20invitaciones=20p?= =?UTF-8?q?=C3=BAblicas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/usuaries/index.haml | 8 +++++++- config/locales/en.yml | 5 +++-- config/locales/es.yml | 5 +++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/views/usuaries/index.haml b/app/views/usuaries/index.haml index 2698cc43..d5df74a7 100644 --- a/app/views/usuaries/index.haml +++ b/app/views/usuaries/index.haml @@ -18,11 +18,17 @@ = t(".#{u.to_s}") .btn-group{role: 'group', 'aria-label': t('.actions')} - if @policy.invite? - = link_to t('.invite.text'), + = link_to t('.invite'), site_usuaries_invite_path(@site, invite_as: u.to_s), class: 'btn btn-success', 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 btn-info', + data: { toggle: 'tooltip' }, + title: t('.help.public_invite') %p= t(".help.#{u.to_s}") %table.table.table-striped.table-condensed %tbody diff --git a/config/locales/en.yml b/config/locales/en.yml index 3475e70c..da4ddc1f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -277,6 +277,7 @@ en: demote: Removes privileges for this user promote: Gives privileges to this guest 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 usuaries: Users invitades: Guests @@ -291,8 +292,8 @@ en: promote: text: 'Convert to user' confirm: 'Convert to user? They will gain full access to self-manage this site.' - invite: - text: 'Invite' + invite: 'Invite' + public_invite: 'Open collaborations' invited: Awaiting confirmation invite: title: 'Invite %{invite_as}' diff --git a/config/locales/es.yml b/config/locales/es.yml index 77899aed..f06c26e4 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -278,6 +278,7 @@ es: demote: Quita privilegios a este usuarie promote: Otorga privilegios a este invitade 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 usuaries: Usuaries invitades: Invitades @@ -292,9 +293,9 @@ es: promote: text: 'Convertir en usuarie' confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.' - invite: - text: 'Invitar' + invite: 'Invitar' invited: Esperando confirmación + public_invite: 'Colaboración abierta' invite: title: 'Invitar %{invite_as}' help: