From 1c2a314cd49ca15f67946487afc6127743761dcb Mon Sep 17 00:00:00 2001 From: f Date: Tue, 24 Sep 2019 20:28:02 -0300 Subject: [PATCH] mensaje de bienvenida generico --- app/views/collaborations/collaborate.haml | 3 +- config/locales/en.yml | 42 ++++++++++++----------- config/locales/es.yml | 1 + 3 files changed, 25 insertions(+), 21 deletions(-) diff --git a/app/views/collaborations/collaborate.haml b/app/views/collaborations/collaborate.haml index c935fc1..50cad80 100644 --- a/app/views/collaborations/collaborate.haml +++ b/app/views/collaborations/collaborate.haml @@ -1,6 +1,7 @@ .row.align-items-center.justify-content-center.full-height .col-md-10.align-self-center - - welcome = @site.config.dig('welcome', 'message') || t('.welcome') + - welcome = @site.config.dig('welcome', 'message') || t('.welcome', + site: @site.hostname) = sanitize_markdown welcome .col-md-6.align-self-center diff --git a/config/locales/en.yml b/config/locales/en.yml index b9ba6e2..037a4c6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -35,27 +35,28 @@ en: es: Castillian Spanish en: English seconds: '%{seconds} seconds' - deploy_mailer: - deployed: - subject: "[Sutty] The site %{site} has been built" - hi: "Hi!" - explanation: | - This e-mail is to notify you that Sutty has built your site and - it's available at . + mailers: + deploy_mailer: + deployed: + subject: "[Sutty] The site %{site} has been built" + hi: "Hi!" + explanation: | + This e-mail is to notify you that Sutty has built your site and + it's available at . - You'll find details bellow. - th: - type: Type - status: Status - deploy_local: - title: Build the site - success: Success! - error: Error - deploy_zip: - title: Build ZIP file - success: Available for download - error: Error - help: You can contact us by replying this e-mail + You'll find details bellow. + th: + type: Type + status: Status + deploy_local: + title: Build the site + success: Success! + error: Error + deploy_zip: + title: Build ZIP file + success: Available for download + error: Error + help: You can contact us by replying this e-mail activerecord: models: usuarie: User @@ -102,6 +103,7 @@ en: collaborations: collaborate: submit: Register + welcome: "You've been invited to collaborate with %{site}" password: incorrect: 'Wrong password, please try again.' info: diff --git a/config/locales/es.yml b/config/locales/es.yml index 434026f..0b1ed19 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -98,6 +98,7 @@ es: collaborations: collaborate: submit: Registrarme + welcome: "Te han invitado a colaborar con el sitio %{site}" password: incorrect: 'ContraseƱa incorrecta, intenta nuevamente.' info: