]> git.parisson.com Git - telemeta.git/commitdiff
add a speaker icon on mediaitem lists if item.file exists
authoryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 11:36:30 +0000 (12:36 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 9 Mar 2011 11:36:30 +0000 (12:36 +0100)
telemeta/htdocs/images/text-speak.png [new file with mode: 0644]
telemeta/templates/telemeta_default/inc/mediaitem_list.html

diff --git a/telemeta/htdocs/images/text-speak.png b/telemeta/htdocs/images/text-speak.png
new file mode 100644 (file)
index 0000000..b31ebac
Binary files /dev/null and b/telemeta/htdocs/images/text-speak.png differ
index 4bae20a852ed4177c5784530afd27bb993aac3e4..c919b980c4dfeb32612c5de342184fbe964b69d3 100644 (file)
@@ -20,6 +20,7 @@
     <th>{% trans "Country/Continent" %}</th>
     {% endif %}
     <th>{% trans "Year of recording" %}</th>
+    <th>{% trans "Sound" %}</th>
 </tr>
 {% for item in items %}
 <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
         {% endif %}
     {% endif %}
     </td>
+    <td>{% if item.file %}
+        <a href="{% url telemeta-item-detail item.public_id %}"><img src="images/text-speak.png" alt="(sound)" style="vertical-align:middle" /></a>
+        {% endif %}
+    </td>
 </tr>
 {% endfor %}
 </table>