From: yomguy Date: Wed, 8 Jun 2011 14:54:00 +0000 (+0200) Subject: fix no collection player when no rights X-Git-Tag: 1.1~122 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a6a82af0b95d3751324795f34227b2fe84ff493;p=telemeta.git fix no collection player when no rights --- diff --git a/telemeta/templates/telemeta_default/collection_detail.html b/telemeta/templates/telemeta_default/collection_detail.html index 7861c749..f083cc35 100644 --- a/telemeta/templates/telemeta_default/collection_detail.html +++ b/telemeta/templates/telemeta_default/collection_detail.html @@ -73,8 +73,9 @@ {% endblock %} {% block content %} -
+
{% if collection.has_mediafile %} + {% if public_access or user.is_staff or user.is_superuser %}
@@ -98,6 +99,7 @@
{% endif %} + {% endif %} {% block infos %}
{% if collection.items.count %}{{ collection.items.count }} {% ifequal collection.items.count 1 %}item{% else %}items{% endifequal %}{% else %}No item{% endif %}