From fb2d26a16c6887e96c717409fadb45834b3f7a00 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 5 Oct 2024 14:22:43 -0700 Subject: [PATCH] firstboot: Hide navigation toggler in mobile layouts Tests: - Start first boot by removing /var/lib/plinth/plinth.sqlite3 and starting service. Switch to responsive design mode and select a phone layout. Notice that an inactive toggler appears during bootup/welcome/account first boot steps. - With the patch, the toggler button does not appear during those steps. After the account step, the toggler appears and is functional with help menu. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- .../first_boot/templates/base_firstboot.html | 9 +++++++++ plinth/templates/base.html | 20 +++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/plinth/modules/first_boot/templates/base_firstboot.html b/plinth/modules/first_boot/templates/base_firstboot.html index ed22363e0..7efe77fd6 100644 --- a/plinth/modules/first_boot/templates/base_firstboot.html +++ b/plinth/modules/first_boot/templates/base_firstboot.html @@ -12,6 +12,15 @@ no-brand {% block mainmenu_left_collapse %} {% endblock %} +{% block notifications_dropdown %} +{% endblock %} + +{% block mainmenu_toggler %} + {% if user.is_authenticated %} + {{ block.super }} + {% endif %} +{% endblock %} + {% block mainmenu_right %} {% if user.is_authenticated %} {% include "firstboot_navbar.html" %} diff --git a/plinth/templates/base.html b/plinth/templates/base.html index 3bc8e83a5..eb91fc4b6 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -89,15 +89,19 @@ {% endblock %} - + {% block notifications_dropdown %} + + {% endblock %} - + {% block mainmenu_toggler %} + + {% endblock %}