Bugzilla – Attachment 176274 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.62 KB, created by
Martin Renvoize (ashimema)
on 2025-01-08 17:23:11 UTC
(
hide
)
Description:
Bug 38685: Only render breadcrumb item if content not empty
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-01-08 17:23:11 UTC
Size:
1.62 KB
patch
obsolete
>From a957e310191057eff7c5154dc876ad1fab0314b8 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 50d618f3929..9e940c7f253 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >@@ -478,16 +478,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.47.1
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