From 6ee545023d653f56900e44e628d0bd43d03f5e18 Mon Sep 17 00:00:00 2001 From: fonfon Date: Wed, 21 Oct 2015 13:53:01 +0000 Subject: [PATCH] first-boot: use a common navbar - Also hide the applications icon in the second step while keeping the logo. --- .../templates/firstboot_navbar.html | 26 +++++++++++++++++++ .../templates/firstboot_state0.html | 8 +----- .../templates/firstboot_state1.html | 16 +++++++----- 3 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 plinth/modules/first_boot/templates/firstboot_navbar.html diff --git a/plinth/modules/first_boot/templates/firstboot_navbar.html b/plinth/modules/first_boot/templates/firstboot_navbar.html new file mode 100644 index 000000000..dfb3f58ed --- /dev/null +++ b/plinth/modules/first_boot/templates/firstboot_navbar.html @@ -0,0 +1,26 @@ +{% comment %} +# +# This file is part of Plinth. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +{% endcomment %} + + diff --git a/plinth/modules/first_boot/templates/firstboot_state0.html b/plinth/modules/first_boot/templates/firstboot_state0.html index f011c5211..5e9d52696 100644 --- a/plinth/modules/first_boot/templates/firstboot_state0.html +++ b/plinth/modules/first_boot/templates/firstboot_state0.html @@ -31,13 +31,7 @@ {% endblock %} {% block add_nav_and_login %} - + {% include "firstboot_navbar.html" %} {% endblock %} {% block content_row %} diff --git a/plinth/modules/first_boot/templates/firstboot_state1.html b/plinth/modules/first_boot/templates/firstboot_state1.html index 8fe94b965..993634158 100644 --- a/plinth/modules/first_boot/templates/firstboot_state1.html +++ b/plinth/modules/first_boot/templates/firstboot_state1.html @@ -22,14 +22,16 @@ {% load i18n %} {% load static %} +{% block page_head %} + +{% endblock %} + {% block add_nav_and_login %} - + {% include "firstboot_navbar.html" %} {% endblock %} {% block content_row %}