diff --git a/plinth/modules/help/templates/help_index.html b/plinth/modules/help/templates/help_index.html index e43a29148..3f4861252 100644 --- a/plinth/modules/help/templates/help_index.html +++ b/plinth/modules/help/templates/help_index.html @@ -1,4 +1,4 @@ -{% extends 'help_base.html' %} +{% extends 'cards.html' %} {% comment %} # # This file is part of FreedomBox. @@ -19,14 +19,8 @@ {% endcomment %} {% load i18n %} - -{% block submenu %} - {% if submenu %} - - {% endif %} -{% endblock %} +{% load firstboot_extras %} +{% load static %} {% block content %} @@ -67,3 +61,36 @@

{% endblock %} + + +{# Adapt mainmenu-links during firstboot #} +{% block mainmenu_left %} + + {% firstboot_is_completed as firstboot_completed %} + {% if not firstboot_completed %} + + + {{ cfg.box_name }} + + {% blocktrans trimmed %}{{ box_name }} Setup{% endblocktrans %} + + + + {% else %} + {{ block.super }} + {% endif %} + +{% endblock %} + + +{% block mainmenu_right %} + + {% firstboot_is_completed as firstboot_completed %} + {% if not firstboot_completed %} + {% include "firstboot_navbar.html" %} + {% else %} + {{ block.super }} + {% endif %} + +{% endblock %} diff --git a/plinth/templates/cards.html b/plinth/templates/cards.html index bb6f1d6ea..e1050c88d 100644 --- a/plinth/templates/cards.html +++ b/plinth/templates/cards.html @@ -49,4 +49,15 @@ + +
+
+
+ {% block content %} + {# main content goes here #} + {% endblock %} +
+
+
+ {% endblock %}