]> git.parisson.com Git - telemeta.git/commitdiff
fix collection title in playlist
authoryomguy <yomguy@parisson.com>
Fri, 24 Jun 2011 12:26:44 +0000 (14:26 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 24 Jun 2011 12:26:44 +0000 (14:26 +0200)
telemeta/templates/telemeta_default/home.html

index 735ce7e2afffe67c5400584eef4215cd8615cc74..8b2bf7b73ec60b0756df6acfa2a83db015b1871c 100644 (file)
@@ -58,7 +58,7 @@
                 <a href="{% url telemeta-item-detail resource.element.public_id %}">{{ resource.element }}</a>
                 {% endif %}
                 {% if resource.type == "collection" and not resource.element == None %}
-                <a href="{% url telemeta-collection-detail resource.element.public_id %}">{{ resource.element }}</a>
+                <a href="{% url telemeta-collection-detail resource.element.public_id %}">{% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %}</a>
                 {% endif %}
                 {% if resource.type == "marker" and not resource.element == None  %}
                 <a href="{% url telemeta-item-detail-marker resource.element.public_id %}">{{ resource.element }}</a>