mostrar la ayuda si el sitio tiene una

This commit is contained in:
f 2019-02-16 15:33:33 -03:00
parent a2fa16eb43
commit 745b9a0fea
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
3 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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"

View file

@ -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"