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 <nicolas.legrand@bulac.fr>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2020-03-25 12:13:10 +00:00 committed by Jonathan Druart
parent 3fc961b7c2
commit 1cee6b7025
1 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,15 @@
<span class="logged-in-branch-code content_hidden">[% Branches.GetLoggedInBranchcode | html %]</span>
[% END %]
</li>
<li class="loggedin-menu-label">
Desk: <br />
[% IF ( LoginDeskname == '' AND Desks.defined ) %]
<span class="logged-in-desk-name">NO DESK SET</span>
[% ELSIF ( LoginDeskname != '' ) %]
<span class="logged-in-desk-name">[% LoginDeskname | html %]</span>
<span class="logged-in-desk-id content_hidden">[% Desks.GetLoggedInDeskId | html %]</span>
[% END %]
</li>
<li role="separator" class="loggedin-menu-label divider"></li>
[% IF ( IndependentBranches ) %]