]> git.parisson.com Git - telemeta.git/commitdiff
fix no ts_item_id
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 18 Apr 2016 08:56:07 +0000 (10:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 18 Apr 2016 08:56:07 +0000 (10:56 +0200)
telemeta/templates/telemeta/mediaitem_detail.html

index 243c2af1f6c7bd00639329c49a35258aa6d1897d..bdfa0e0979ffd3b24d4bf5b4230c6cac45994fd6 100644 (file)
                     <img src="{{ STATIC_URL }}telemeta/images/{{ format.extension }}.png" style="vertical-align:middle" alt="{{ format.extension }}" /></a>
                 {% endfor %}
         </div>
-       {% block DIADEMS %}
-       <a href="{% url "timeside-item-diadems" ts_item_id %}">
-         <button type="button" class="btn btn-primary" style="float:left;margin-top:0.5em;margin-bottom:1em;border-color: #ffffff; ">
-            <b>DIADEMS</b>
-         </button>
-       </a>      
-       {% endblock DIADEMS %}
-
 
+       {% block DIADEMS %}
+        {% if ts_item_id %}
+       <a href="{% url "timeside-item-diadems" ts_item_id %}">
+         <button type="button" class="btn btn-primary" style="float:left;margin-top:0.5em;margin-bottom:1em;border-color: #ffffff; ">
+                <b>DIADEMS</b>
+         </button>
+       </a>
+        {% endif %}
+       {% endblock DIADEMS %}
 
         {% endif %}