mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
f75ee196fe
commit
a596ad5f37
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user