firstboot: Add new help menu to firstboot navbar

- Refactor the help menu into a django template include.

- Show help menu if user is logged in, instead of after completing firstboot.

Closes: #1517

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Rename help-menu.inc to help-menu.inc]
[sunil@medhas.org Use user.is_authenticated instead of another variable]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2019-09-17 19:45:48 -07:00
1 parent 3e619d6882
commit 7cbaec3e26
4 files changed
+71 -58

No files matched your search

@@ -29,7 +29,7 @@
{% endblock %}
{% block mainmenu_right %}
{% if firstboot_complete %}
{% include "firstboot_navbar.html" %}
{% endif %}
{% if user.is_authenticated %}
{% include "firstboot_navbar.html" %}
{% endif %}
{% endblock %}
@@ -17,13 +17,4 @@
#
{% endcomment %}
{% load i18n %}
<li>
<a href="{% url 'help:index' %}" title="{% trans "Help" %}">
<span class="fa fa-question-circle nav-icon"></span>
<span class="nav-text hidden-sm hidden-md hidden-lg">
{% trans "Help" %}
</span>
</a>
</li>
{% include "help-menu.html" %}