From 91155b8de797dff07c20a6f4d7bae4ce12745b5b Mon Sep 17 00:00:00 2001 From: Kyle M Hall 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 Signed-off-by: Barton Chittenden Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer --- 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 @@ - [% logged_in_user.userid | html %] + [% SET is_superlibrarian = CAN_user_superlibrarian ? 'is_superlibrarian' : '' %] + [% logged_in_user.userid | html %] | [% IF ( AutoLocation ) %] -- 2.11.0