From d934b0f610cacfa5f546f061fbb29c043bb6b22a Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 12 Dec 2024 13:01:23 +0000 Subject: [PATCH] Bug 38685: Only render breadcrumb item if content not empty This ensures the '>' caret is only rendered if there is indeed some breadcrumb content. Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize --- .../prog/en/includes/html_helpers.inc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc index 4bf568b5f70..f2974790a67 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -552,12 +552,14 @@ [%# Used to build individual breadcrumb items in the breadcrumb nav %] [% BLOCK breadcrumb_item %] - [% IF ( bc_active ) %] - - [% ELSE %] - + [% IF content.trim %] + [% IF ( bc_active ) %] + + [% ELSE %] + + [% END %] [% END %] [% END %] -- 2.39.5