fix issues with changed URLs

- sort all_hosting_packages before hosting_packages
- allow _ in user names
- only display hosting link if user is authenticated
This commit is contained in:
Jan Dittberner 2015-02-01 15:14:26 +01:00
parent 5d19120bbf
commit cea780a9b2
2 changed files with 9 additions and 9 deletions

View file

@ -53,7 +53,7 @@
<li><a href="{% url 'all_hosting_packages' %}">{% trans "All hosting packages" %}</a></li>
</ul>
</li>
{% else %}
{% elif user.is_authenticated %}
<li{% if active_item == 'hostingpackage' %} class="active"{% endif %}><a href="{% url 'hosting_packages' user=user.username %}">{% trans "Hosting" %}</a></li>
{% endif %}
<li class="dropdown">