# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = '/media/'
+MEDIA_URL = 'http://localhost:8040/'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
{% if media.type == 'webm' %}
<tr>
<td {% if forloop.first %}class="border-top"{% endif %} width="230px" style="vertical-align:middle">
- <a href="{% url teleforma-media-detail media.id %}" title="{% trans "View" %}">
- {% if media.item.related.all %}
- {% for related in media.item.related.all %}
- {% if related.title == "preview" %}
- <img src="{{ MEDIA_URL }}{{ related.file }}" width="100%" alt="{% trans 'Click here' %}" />
- {% endif %}
- {% endfor %}
- {% else %}
- {% trans 'Click here' %}
- {% endif %}
- </a>
+ <a href="{% url teleforma-media-detail media.id %}" title="{% trans "Play" %}">
+ {% if media.item.related.all %}
+ {% for related in media.item.related.all %}
+ {% if related.title == "preview" %}
+ <div style="background-image: url('{{ MEDIA_URL }}{{ related.file }}'); background-size: 100%;">
+ <img src="{{ STATIC_URL }}teleforma/images/play_168.png" width="100%" alt="{% trans 'Click here' %}" />
+ </div>
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ {% trans 'Click here' %}
+ {% endif %}
+ </a>
</td>
<td {% if forloop.first %}class="border-top"{% endif %} width="60%" style="padding-left: 1em;">
<div>