5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 21:16:07 +00:00

habilitar/deshabilitar colaboraciones anonimas

This commit is contained in:
f 2020-02-18 15:15:02 -03:00
parent 583405f9ff
commit bd6b0f9696
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
5 changed files with 22 additions and 2 deletions

View file

@ -1,13 +1,16 @@
//= require_tree .
@import "bootstrap";
$black: black;
$white: white;
$grey: grey;
$cyan: #13fefe;
$magenta: #f206f9;
// Redefinir variables de Bootstrap
$primary: $magenta;
@import "bootstrap";
:root {
--foreground: #{$black};
--background: #{$white};

View file

@ -113,6 +113,7 @@ class SitesController < ApplicationController
def site_params
params.require(:site)
.permit(:name, :design_id, :licencia_id, :description, :title,
:colaboracion_anonima,
deploys_attributes: %i[type id _destroy])
end
end

View file

@ -92,6 +92,14 @@
= deploy.hidden_field :type
- else
.form-group
%h2= t('.colaboracion_anonima.title')
%p.lead= t('.colaboracion_anonima.help')
.custom-control.custom-switch
= f.check_box :colaboracion_anonima, class: 'custom-control-input'
= f.label :colaboracion_anonima, class: 'custom-control-label'
.form-group
%h2= t('.deploys.title')
%p.lead= t('.help.deploys')

View file

@ -76,6 +76,7 @@ en:
name: 'Name'
title: 'Title'
description: 'Description'
colaboracion_anonima: Enable anonymous collaboration
errors:
models:
site:
@ -319,6 +320,9 @@ en:
title: 'Privacy policy and code of conduct'
deploys:
title: 'Where do you want your site to be hosted?'
colaboracion_anonima:
title: 'Accept anonymous collaboration'
help: 'By allowing anonymous collaboration, you enable visitors to send articles without a Sutty account. Nothing is published without your consent, so make sure to check drafts regularly. This feature can expose you to attacks and violence, so we recommend you enable it with care.'
fetch:
title: 'Upgrade the site'
help:

View file

@ -79,6 +79,7 @@ es:
name: 'Nombre'
title: 'Título'
description: 'Descripción'
colaboracion_anonima: Habilitar colaboración anónima
errors:
models:
site:
@ -327,6 +328,9 @@ es:
title: Políticas de privacidad y código de convivencia
deploys:
title: '¿Dónde querés alojar tu sitio?'
colaboracion_anonima:
title: 'Aceptar colaboraciones anónimas'
help: 'Al permitir colaboraciones anónimas, habilitamos a les visitantes del sitio a enviar contenido sin necesidad de una cuenta en Sutty. Nada se publica sin tu consentimiento, así que revisa los borradores regularmente. Esto también te puede exponer a ataques y violencias, por lo que es una característica que recomendamos usar con cuidado.'
fetch:
title: 'Actualizar el sitio'
help: