From 1cee6b7025e42c4e69d7dca0f4c852c66c939e36 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 25 Mar 2020 12:13:10 +0000 Subject: [PATCH] Bug 24201: (follow-up) Show desk information at lower screen widths The staff client header menu adjusts responsively to narrower viewport widths, but for the logged-in-user menu this requires showing and hiding part of the template which duplicates information. This patch adds a copy of the current desk information to the part of the template shown at narrower widths. To test, apply the patch and view any page in the staff client. - Narrow your browser so that the viewport is less than 800px wide. - The logged-in-user menu should change from text to a single "user" icon. - Clicking the icon should display a menu which includes labeled information about the current desk. Signed-off-by: Nicolas Legrand Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Martin Renvoize Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index 366209eb5f..f65cd87205 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -117,6 +117,15 @@ [% Branches.GetLoggedInBranchcode | html %] [% END %] +
  • + Desk:
    + [% IF ( LoginDeskname == '' AND Desks.defined ) %] + NO DESK SET + [% ELSIF ( LoginDeskname != '' ) %] + [% LoginDeskname | html %] + [% Desks.GetLoggedInDeskId | html %] + [% END %] +
  • [% IF ( IndependentBranches ) %] -- 2.39.5