From bcd34d6d8feebf88a50db4c45e60b71993ff7390 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 11 Jul 2022 18:27:20 +0000 Subject: [PATCH] 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 --- .../opac/parts/topnav_links.tt2 | 26 +++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 index 7d6d510180..9948b2e7f0 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 @@ -1,9 +1,29 @@