help: Show cards in the index page

- Need to duplicate the code from help base page.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2018-06-18 20:20:47 +05:30
1 parent f75ee196fe
commit a596ad5f37
2 files changed
+47 -9

No files matched your search

+36 -9
View File
@@ -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 %}
<div class="sidebar">
{% include "submenu.html" with menu=submenu %}
</div>
{% endif %}
{% endblock %}
{% load firstboot_extras %}
{% load static %}
{% block content %}
@@ -67,3 +61,36 @@
</p>
{% endblock %}
{# Adapt mainmenu-links during firstboot #}
{% block mainmenu_left %}
{% firstboot_is_completed as firstboot_completed %}
{% if not firstboot_completed %}
<span class="navbar-brand">
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}"
alt="{{ cfg.box_name }}" />
<a href="{% url 'index' %}">
{% blocktrans trimmed %}{{ box_name }} Setup{% endblocktrans %}
</a>
</span>
{% 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 %}