Bugzilla – Attachment 88625 Details for
Bug 22765
Add class beside loggedinusername to indicate if logged in user is a superlibrarian
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22765 - Add class beside loggedinusername to indicate if logged in user is a superlibrarian
Bug-22765---Add-class-beside-loggedinusername-to-i.patch (text/plain), 1.64 KB, created by
Kyle M Hall (khall)
on 2019-04-24 13:54:25 UTC
(
hide
)
Description:
Bug 22765 - Add class beside loggedinusername to indicate if logged in user is a superlibrarian
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-04-24 13:54:25 UTC
Size:
1.64 KB
patch
obsolete
>From 5f5fe6d8c104778f8a451d17a965eb3a6ccc4b1e Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 24 Apr 2019 09:51:36 -0400 >Subject: [PATCH] Bug 22765 - Add class beside loggedinusername to indicate if > logged in user is a superlibrarian > >It would be useful to know if a logged in user is a superlibrarian for the purpose of customization >using Javascript and CSS. > >Test Plan: >1) Apply this patch, restart all the things >2) Log in as a superlibraraian >3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class >4) Log in as a non-superlibrarian >5) Note the new class is not present >--- > koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >index 6ddc66eea6..6e40fad59a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -69,7 +69,8 @@ > <i class="fa fa-user"></i> > </span> > <span id="logged-in-info-full"> >- <span class="loggedinusername">[% logged_in_user.userid | html %]</span> >+ [% SET is_superlibrarian = CAN_user_superlibrarian ? 'is_superlibrarian' : '' %] >+ <span class="loggedinusername [% is_superlibrarian | html %]">[% logged_in_user.userid | html %]</span> > <span class="separator">|</span> > [% IF ( AutoLocation ) %] > <brand> >-- >2.20.1 (Apple Git-117)
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 22765
:
88625
|
88627
|
88633
|
88634
|
88682