Commit 384df022 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

fixed mediatype in template

parent 1554c816
......@@ -61,15 +61,17 @@
{%else%}
{% set play_link = f.id %}
{% endif %}
<tr class="file" property="dcterms:hasPart" resource="{{f.id}}" typeof="{% if f.ext in ('jpg', 'png', 'gif') or f.ext.startswith("video/") or f.ext.startswith("audio/") or f.ext == "pdf" %}mediaitem {%endif%}file">
<tr class="file" property="dcterms:hasPart" resource="{{f.id}}" typeof="{% if f.mediatype %}mediaitem {%endif%}file">
<td class="icon" valign="top">
<a href="{{play_link}}">
{% if f.thumbnail %}
<img src="{{f.thumbnail}}" class="icon" alt="[FILE]">
{% elif f.ext.startswith("image/") %}
{% elif f.mediatype == "image") %}
<img src="/lib/icons/image1.gif" alt="[IMAGE]">
{% elif f.ext.startswith("audio/") or f.ext.startswith("video/") %}
{% if f.video %}<img src="/lib/icons/video.gif" alt="[IMAGE]">{% else %}<img src="/lib/icons/sound2.gif" alt="[IMAGE]">{%endif%}
{% elif f.mediatype == "video" %}
<img src="/lib/icons/video.gif" alt="[IMAGE]">
{% elif f.mediatype == "audio" %}
<img src="/lib/icons/sound2.gif" alt="[IMAGE]">
{% else %}
<img src="/lib/icons/generic.gif" alt="[IMAGE]">
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment