Bugzilla – Attachment 98260 Details for
Bug 24560
Don't show "Public Lists" in OPAC List menu if no public lists exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24560: Dont show Public lists if there are 0
Bug-24560-Dont-show-Public-lists-if-there-are-0.patch (text/plain), 2.04 KB, created by
ByWater Sandboxes
on 2020-02-01 00:05:27 UTC
(
hide
)
Description:
Bug 24560: Dont show Public lists if there are 0
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-02-01 00:05:27 UTC
Size:
2.04 KB
patch
obsolete
>From 5deac77e340ba213a7a4d2bd8bdcdd7b0ce4f86b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 31 Jan 2020 23:48:29 +0000 >Subject: [PATCH] Bug 24560: Dont show Public lists if there are 0 > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 3f429fe0e2..3606d47e9b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -47,9 +47,13 @@ > <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li> > [% END %] > [% ELSE %] >- <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li> >+ [% IF some_public_shelves.count > 0 %] >+ <li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li> >+ [% END %] >+ [% END %] >+ [% IF some_public_shelves.count < 0 %] >+ <li class="divider" role="presentation"></li> > [% END %] >- <li class="divider" role="presentation"></li> > [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] > <li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li> > [% IF loggedinusername %] >-- >2.11.0
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 24560
:
98259
|
98260
|
98264
|
98265
|
98350
|
98362