From 745b9a0fea3f4ef886626cbb52cbf734decb49cb Mon Sep 17 00:00:00 2001 From: f Date: Sat, 16 Feb 2019 15:33:33 -0300 Subject: [PATCH] mostrar la ayuda si el sitio tiene una --- app/views/layouts/_breadcrumb.haml | 2 ++ config/locales/en.yml | 3 +++ config/locales/es.yml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index 4027da5..0c928a0 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -1,6 +1,8 @@ %nav{'aria-label': 'breadcrumb', role: 'navigation'} %ol.breadcrumb %li.breadcrumb-item= render 'login/logout' + - if help = @site.try(:config).try(:dig, 'help') + %li.breadcrumb-item= link_to t('.help'), help, target: '_blank' - crumbs.compact.each do |crumb| - if current_user.is_a? Invitadx - if /\/sites/ =~ crumb diff --git a/config/locales/en.yml b/config/locales/en.yml index cb1d690..ec393c5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -17,6 +17,9 @@ en: reorder: "We're sorry, we couldn't reorder the articles" disordered: "The posts are disordered, this will prevent you from reordering them!" disordered_button: 'Reorder!' + layouts: + breadcrumb: + help: Help invitadx_mailer: confirmation_required: subject: "Confirm your e-mail address" diff --git a/config/locales/es.yml b/config/locales/es.yml index f1bdb21..2b93429 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -17,6 +17,9 @@ es: reorder: "Lo sentimos, no pudimos reordenar los artículos." disordered: 'Los artículos no tienen número de orden, esto impedirá que los puedas reordenar' disordered_button: '¡Reordenar!' + layouts: + breadcrumb: + help: Ayuda invitadx_mailer: confirmation_required: subject: "Confirma tu dirección de correo"