mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
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" %}
|
||||
Reference in new issue
Block a user