Commit d4ab2af0 by Robert Lyon

Bug 1686860: Allow the account settings menus show on mobile

This is a problem when we have dropdown menu turned off and are in the user 'settings' area and are viewing the site on a small screen. behatnotneeded Change-Id: Id641080835e4fd61524125ef473b2511f1042a6e Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz> (cherry picked from commit 78e43b3a)
parent 3f5de807
......@@ -649,9 +649,10 @@ EOF;
$smarty->assign('MAINNAV', main_nav());
$mainnavsubnav = $SELECTEDSUBNAV;
$smarty->assign('RIGHTNAV', right_nav());
if (!$mainnavsubnav && $dropdownmenu) {
// In drop-down navigation, the submenu is only usable if its parent is one of the top-level menu
// items. But if the submenu comes from something in right_nav (settings), it's unreachable.
if (!$mainnavsubnav) {
// The submenu is only usable if its parent is one of the top-level menu items.
// But if the submenu comes from something in right_nav (settings), it's unreachable
// via dropdowns / mobile layout.
// Turning the submenu into SUBPAGENAV group-style tabs makes it usable.
$smarty->assign('SUBPAGENAV', $SELECTEDSUBNAV);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment