From b82fd37526906f0bba2e9c1bcbdc7e00c2fd3180 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 15 Apr 2023 17:06:42 -0300 Subject: [PATCH] fix: no agregar contenedor de migas si no hay ninguna --- app/views/layouts/_breadcrumb.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index a9d231d1..9251ee36 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -3,14 +3,15 @@ = inline_svg_tag 'sutty.svg', class: 'black', aria: true, title: t('svg.sutty.title'), desc: t('svg.sutty.desc') - %nav.flex-grow-1.order-2.order-md-1{ aria: { label: t('.title') } } - %ol.breadcrumb.m-0.flex-wrap - - breadcrumb_trail do |crumb| - %li.breadcrumb-item{ class: crumb.current? ? 'active' : '' } - - if crumb.current? - %span.line-clamp-1{ aria: { current: 'page' } }= crumb.name - - else - = link_to crumb.name, crumb.url, class: 'line-clamp-1' + - if breadcrumbs? + %nav.flex-grow-1.order-2.order-md-1{ aria: { label: t('.title') } } + %ol.breadcrumb.m-0.flex-wrap + - breadcrumb_trail do |crumb| + %li.breadcrumb-item{ class: crumb.current? ? 'active' : '' } + - if crumb.current? + %span.line-clamp-1{ aria: { current: 'page' } }= crumb.name + - else + = link_to crumb.name, crumb.url, class: 'line-clamp-1' %ul.navbar-nav.order-1.order-md-2 - if @current_usuarie || current_usuarie