help: Convert help icon in the navbar to dropdown

- Tested with JavaScript disabled
- Tested on mobile

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Add some missing accessibility attributes]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2019-09-06 22:26:46 +05:30 committed by Sunil Mohan Adapa
parent a1243f71f7
commit 7409ea5daa
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -141,13 +141,50 @@
{% block mainmenu_right %}
{% if user.is_authenticated %}
<li>
<a href="{% url 'help:index' %}" title="{% trans "Help" %}">
<li class="dropdown">
<a href="{% url 'help:index' %}" title="{% trans "Help" %}"
class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-expanded="false" aria-expanded="false">
<span class="fa fa-question-circle nav-icon"></span>
<span class="nav-text hidden-sm hidden-md hidden-lg">
{% trans "Help" %}
</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{% url 'help:manual' %}"
title="{% trans "Manual"%}">
{% trans "Manual" %}
</a>
</li>
<li role="separator" class="divider hidden-xs"></li>
<li>
<a href="{% url 'help:support' %}"
title="{% trans "Get Support" %}">
{% trans "Get Support" %}
</a>
</li>
<li>
<a href="{% url 'help:feedback' %}"
title="{% trans "Submit Feedback" %}">
{% trans "Submit Feedback" %}
</a>
</li>
<li>
<a href="{% url 'help:contribute' %}"
title="{% trans "Contribute" %}">
{% trans "Contribute" %}
</a>
</li>
<li role="separator" class="divider hidden-xs"></li>
<li>
<a href="{% url 'help:about' %}"
title="{% trans "About" %}">
{% trans "About" %}
</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="{% url 'users:edit' request.user.username %}"