Fix #444 -- Add alternative text to the top-right navigation (#457)

* Update base.html

* Update base.html

* Update signals.py
This commit is contained in:
morrme
2017-04-06 07:13:12 -05:00
committed by Raphael Michel
parent 4accbef6a9
commit 8d16e2b59b
2 changed files with 3 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ Receivers are expected to return a list of dictionaries. The dictionaries
should contain at least the keys ``label`` and ``url``. You can also return
a fontawesome icon name with the key ``icon``, it will be respected depending
on the type of navigation. If set, on desktops only the ``icon`` will be shown.
The ``title`` property can be used to set the alternative text.
If you use this, you should read the documentation on :ref:`how to deal with URLs <urlconf>`
in pretix.

View File

@@ -78,7 +78,7 @@
<ul class="nav navbar-nav navbar-top-links navbar-right">
{% for nav in nav_topbar %}
<li {% if nav.children %}class="dropdown"{% endif %}>
<a href="{{ nav.url }}" {% if nav.active %}class="active"{% endif %}
<a href="{{ nav.url }}" title="{{ nav.title }}" {% if nav.active %}class="active"{% endif %}
{% if nav.children %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}>
{% if nav.icon %}
<span class="fa fa-{{ nav.icon }}"></span>
@@ -113,7 +113,7 @@
</li>
{% endif %}
<li>
<a href="{% url 'control:user.settings' %}">
<a href="{% url 'control:user.settings' %}" title="{% trans "Account Settings" %}" >
<i class="fa fa-user"></i> {{ request.user.get_full_name }}
</a>
</li>