From 5bd88d1921e64231ae22932d7a5a20c3d40d4eb8 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 25 Sep 2020 12:48:30 +0100 Subject: [PATCH] Bug 26534: (follow-up) Only center when using patronimages I felt the change to always center the user title worked well when patronimages was enabled, but not so well when it was not (it looked strange without a background for non-staff users). --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 ++++- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index b5285b7907..8b22608898 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1381,7 +1381,6 @@ dd { margin-top: -.5em; h5 { - text-align: center; border-right: 1px solid #B9D8D9; margin-bottom: 0; padding-bottom: .5em; @@ -1391,6 +1390,10 @@ dd { &:empty { border-right: 0; } + + &.center { + text-align: center; + } } ul { diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index ec23e4f3b4..c5b78aaf75 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -5,7 +5,7 @@ [% SET patrongrade = ( patron.has_permission({ 'catalogue' => 1 }) ) ? 'staffgrade' : 'normalgrade' %]
-
+ [% IF ( patrongrade == 'staffgrade' ) %] [% END %] -- 2.20.1