Bug 32973: Use template wrapper for breadcrumbs: about, main, and error page

This patch updates the staff interface home page, the about page, and
the error page template so that they use the new template WRAPPER for
breadcrumbs.

To test, apply the patch and view each page to confirm that the
breadcrumbs are correct:

- Staff interface home page
- About page
- Error page (the easiest example is a 404 error)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-01-05 17:16:30 +00:00 committed by Tomas Cohen Arazi
parent 9cad332463
commit 1a200cc25e
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 12 additions and 27 deletions

View File

@ -13,16 +13,11 @@
[% PROCESS 'about-team.inc' %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="#" aria-current="page">About Koha</a>
</li>
</ol>
</nav>
[% END %]
[% END %]
[% END %]
<div class="main container-fluid">

View File

@ -1,4 +1,4 @@
[% USE raw %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Error [% errno | html %] &rsaquo; Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
@ -10,19 +10,14 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
<a href="#" aria-current="page">
Error [% errno | html %]
</a>
</li>
</ol>
</nav>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
<div class="row">

View File

@ -16,13 +16,8 @@
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl" aria-current="page">Home</a>
</li>
</ol>
</nav>
[% WRAPPER breadcrumbs %]
[% END #/ WRAPPER breadcrumbs %]
[% END %]
<div id="container-main" class="container-fluid">