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 2018-06-18 19:34:18 +05:30
parent f75ee196fe
commit a596ad5f37
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 47 additions and 9 deletions

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 %}

View File

@ -49,4 +49,15 @@
</div>
</div>
</div>
<div id="container-wrapper" class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
{% block content %}
{# main content goes here #}
{% endblock %}
</div>
</div>
</div>
{% endblock %}