From 4a6a82af0b95d3751324795f34227b2fe84ff493 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 8 Jun 2011 16:54:00 +0200 Subject: [PATCH] fix no collection player when no rights --- telemeta/templates/telemeta_default/collection_detail.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 %} -- 2.39.5