]> git.parisson.com Git - telemeta.git/commitdiff
add sound icon in collection_list for collections having sounds
authoryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 16:18:55 +0000 (17:18 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 16:18:55 +0000 (17:18 +0100)
telemeta/templates/telemeta_default/inc/collection_list.html

index 8ff255a6d13dd7fcdf161e6c9d5d4870ab6f9c82..0beb56b81985a46807e68786ab25e30be69b3dc1 100644 (file)
@@ -16,6 +16,7 @@
     <th>{% field_label "MediaCollection" "creator" %}</th>
     <th>{% trans "Recordist" %}</th>
     <th>{% trans "Year of recording" %}</th>
+    <th>{% trans "Sound" %}</th>
 </tr>
 {% for collection in collections %}
 <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
         {% endif %}
     {% endif %}
     </td>
+    <td>
+      {% if collection.has_mediafile %}
+       <img src="images/text-speak.png" alt="(sound)" style="vertical-align:middle" />
+      {% endif %}
+    </td>
 </tr>
 {% endfor %}
 </table>