Don't attempt to show Sentry if its not enabled

This commit is contained in:
2012-01-04 20:56:40 +00:00
parent 4b503b79f0
commit 8574dee7a7

View File

@@ -64,8 +64,10 @@
{% if request.user.is_staff %}
<li><a href="/nexus/">Admin</a></li>
{% endif %}
{% if "sentry"|installed %}
{% if request.user.is_superuser %}
<li><a href="{% url sentry %}">Sentry</a></li>
{% endif %}
{% endif %}
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
{% endif %}