Bugzilla – Attachment 175461 Details for
Bug 38685
ILL pages have incomplete breadcrumbs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38685: Only render breadcrumb item if content not empty
Bug-38685-Only-render-breadcrumb-item-if-content-n.patch (text/plain), 1.56 KB, created by
Owen Leonard
on 2024-12-13 17:36:34 UTC
(
hide
)
Description:
Bug 38685: Only render breadcrumb item if content not empty
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-12-13 17:36:34 UTC
Size:
1.56 KB
patch
obsolete
>From d70cb7f46cb73ab7884b6f9fd825c10e98f1bbc7 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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 <oleonard@myacpl.org> >--- > .../prog/en/includes/html_helpers.inc | 20 ++++++++++--------- > 1 file changed, 11 insertions(+), 9 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 d5af13c7dc..c91cedfe99 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >@@ -474,16 +474,18 @@ > > [%# Used to build individual breadcrumb items in the breadcrumb nav %] > [% BLOCK breadcrumb_item %] >- [% IF ( bc_active ) %] >- <li class="breadcrumb-item active" aria-current="page"> >- <a href="#"> >+ [% IF content.trim %] >+ [% IF ( bc_active ) %] >+ <li class="breadcrumb-item active" aria-current="page"> >+ <a href="#"> >+ [% content | $raw %] >+ </a> >+ </li> >+ [% ELSE %] >+ <li class="breadcrumb-item"> > [% content | $raw %] >- </a> >- </li> >- [% ELSE %] >- <li class="breadcrumb-item"> >- [% content | $raw %] >- </li> >+ </li> >+ [% END %] > [% END %] > [% END %] > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38685
:
175397
|
175399
|
175400
|
175401
|
175460
|
175461
|
175462
|
175463
|
176273
|
176274
|
176275
|
176276