From 96fc65a94fe9cb16c4ea7b486816e85153652b7c Mon Sep 17 00:00:00 2001 From: f Date: Tue, 11 Feb 2020 14:23:38 -0300 Subject: [PATCH] mensaje de bienvenida #80 --- app/views/sites/index.haml | 3 +++ config/locales/en.yml | 17 ++++++++++++++++- config/locales/es.yml | 12 ++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app/views/sites/index.haml b/app/views/sites/index.haml index 0cd3562c..759e9e38 100644 --- a/app/views/sites/index.haml +++ b/app/views/sites/index.haml @@ -9,6 +9,9 @@ class: 'btn' %section.col + - if @sites.empty? + :markdown + #{t('.welcome')} %table.table.table-condensed %tbody - @sites.each do |site| diff --git a/config/locales/en.yml b/config/locales/en.yml index 4e0d1c8d..1a452b5a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -251,7 +251,22 @@ en: title: 'Sites' pull: 'Upgrade' help: 'This is the list of sites you can edit' - visit: 'Visitar el sitio' + visit: 'Visit the site' + welcome: | + # Welcome! + + You have no sites yet. You can generate all the sites you want + with the **Create site** button. + + Para ver los cambios, usa el botón **Publicar cambios** en cada + sitio y espera unos segundos. También recibirás un correo de + notificación. + + To see your changes, use the **Publish changes** button on each + site and wait a few seconds. You'll also receive an e-mail + notification. + + [Create my first site](/sites/new) repository: config: 'Changes in config' actions: 'Actions' diff --git a/config/locales/es.yml b/config/locales/es.yml index fffb3378..fd15d75b 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -257,6 +257,18 @@ es: pull: 'Actualizar' help: 'Este es el listado de sitios que puedes editar' visit: 'Visitar el sitio' + welcome: | + # ¡Bienvenide! + + Todavía no tienes ningún sitio. Puedes crear todos los sitios + que quieras usando el botón **Crear sitio**. + + Para ver los cambios, usa el botón **Publicar cambios** en cada + sitio y espera unos segundos. También recibirás un correo de + notificación. + + [Crear mi primer sitio](/sites/new) + repository: config: 'Cambios en la configuración' actions: 'Acciones'