From: Kyle M Hall Date: Wed, 24 Apr 2019 13:51:36 +0000 (-0400) Subject: Bug 22765: Add class beside loggedinusername to indicate if logged in user is a super... X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=90f8eb626d32694e3297a4cfe6566cbb9abe192b 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 Signed-off-by: Nick Clemens --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 6ddc66e..6e40fad 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 ) %]