LP1975390 Mobile opac user login status concealed user/gcollum/lp1975390-Login_status_obscured_for_mobile_opac_user
authorGarry Collum <gcollum@gmail.com>
Mon, 11 Jul 2022 18:27:20 +0000 (18:27 +0000)
committerGarry Collum <gcollum@gmail.com>
Mon, 11 Jul 2022 18:27:20 +0000 (18:27 +0000)
commitbcd34d6d8feebf88a50db4c45e60b71993ff7390
tree844423ac17f7b8b9b1cc37286ad382448c0ec6ea
parent9c34d3b6ad56d1e21eb2422ac033358710c674bf
LP1975390 Mobile opac user login status concealed

It isn't immediately apparent if a mobile user in the Bootstrap opac is
logged in.  This patch displays 'Login to My Account' or 'Logout' outside
of the collapsible section of the menu so that these links display
next to the collapsed hamburger button.  If the menu is collapsed, these
options are also suppressed from the expanded menu.

To test:
1. Resize the opac screen until the menu collapses and notice that you
have to expand the menu to login.
2. Login and notice that in mobile screen that the only way to know that
you are logged in is to expand the collapsed menu.
3. Apply patch.
4. Now either 'Login to My Account' or 'Logout' is displayed next to
the collapse button, and these options no longer appear in the expanded menu.
5. Resize the screen and notice that either 'Login to My Account' or 'Logout'
appear in the menu bar.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2