From 3de4c5639fe049d79bbc092bbc301eff0fcb1da6 Mon Sep 17 00:00:00 2001 From: Hemanth Kumar Veeranki Date: Fri, 11 Aug 2017 16:38:37 +0530 Subject: [PATCH] Remove help from navbar before firstboot complete Signed-off-by: Hemanth Kumar Veeranki Reviewed-by: Johannes Keyser --- plinth/modules/first_boot/templates/base_firstboot.html | 4 +++- plinth/modules/first_boot/views.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plinth/modules/first_boot/templates/base_firstboot.html b/plinth/modules/first_boot/templates/base_firstboot.html index 1c523481c..385abd7ae 100644 --- a/plinth/modules/first_boot/templates/base_firstboot.html +++ b/plinth/modules/first_boot/templates/base_firstboot.html @@ -29,5 +29,7 @@ {% endblock %} {% block mainmenu_right %} - {% include "firstboot_navbar.html" %} + {% if firstboot_complete %} + {% include "firstboot_navbar.html" %} + {% endif %} {% endblock %} diff --git a/plinth/modules/first_boot/views.py b/plinth/modules/first_boot/views.py index 6d722a817..cb52b9021 100644 --- a/plinth/modules/first_boot/views.py +++ b/plinth/modules/first_boot/views.py @@ -54,4 +54,5 @@ class CompleteView(TemplateView): context = super().get_context_data(**kwargs) context['connections'] = network.get_connection_list() context['title'] = _('Setup Complete') + context['firstboot_complete'] = True return context