{% extends widget.get_base_template %}

{% load thumbnail %}

{% block content %}
<ul class="file-list">
{% for category_file in widget.category.media.all %}
{% with category_file.file as file %}
	<li class="file-{{ file.type }}"><a href="{{ file.file.url }}" target="_blank"><span>{% if file.translation.name %}{{ file.translation.name }}{% else %}{{ file }}{% endif %}</span></a> ({{ file.type }}, {{ file.file.size|filesizeformat }})</li>
{% endwith %}
{% endfor %}
</ul>
{% endblock %}
