frontpage: Don't show apps link when not logged in

Now, that we have link to the front page, that is the ideal page for
anonymous user to go.  Don't show the apps page link when user is not
logged in.
This commit is contained in:
Sunil Mohan Adapa 2016-09-02 18:45:49 +05:30
parent f226b823a2
commit a319f78a92
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -91,10 +91,12 @@
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}"
alt="{{ box_name }}" />
</a>
<a href="{% url 'apps:index' %}" class="navbar-brand"
title="{% trans "Applications" %}">
<span class="glyphicon glyphicon-th"></span>
</a>
{% if user.is_authenticated %}
<a href="{% url 'apps:index' %}" class="navbar-brand"
title="{% trans "Applications" %}">
<span class="glyphicon glyphicon-th"></span>
</a>
{% endif %}
{% endblock %}
</div>
<div class="collapse navbar-collapse">