diff --git a/snipts/templates/snipts/detail.html b/snipts/templates/snipts/detail.html index bc3ec0d..e6bd107 100644 --- a/snipts/templates/snipts/detail.html +++ b/snipts/templates/snipts/detail.html @@ -2,7 +2,7 @@ {% block page-title %}/ {% if snipt.title %}{{ snipt.title }}{% else %}Untitled{% endif %} / {{ user.username }} - {{ block.super }}{% endblock %} {% block html-class %}detail{% endblock %} -{% block body-class %}{% if request.path == '/api/' %}api{% else %}detail{% endif %}{% endblock %} +{% block body-class %}{% if request.path == '/api/' and request.user.is_authenticated %}api{% else %}detail{% endif %}{% endblock %} {% block js %} {{ block.super }} @@ -15,7 +15,7 @@ {% endblock %} {% block aside %} - {% if request.path == '/api/' %} + {% if request.path == '/api/' and request.user.is_authenticated %}