From a596ad5f370d7f60b72ae60acaf8a3167bea933e Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa
Date: Mon, 18 Jun 2018 19:34:18 +0530
Subject: [PATCH] help: Show cards in the index page
- Need to duplicate the code from help base page.
Signed-off-by: Manish Tripathy
Signed-off-by: Sunil Mohan Adapa
Reviewed-by: Sunil Mohan Adapa
---
plinth/modules/help/templates/help_index.html | 45 +++++++++++++++----
plinth/templates/cards.html | 11 +++++
2 files changed, 47 insertions(+), 9 deletions(-)
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 %}
+
+
+
+
+ {% 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 %}