Source

django-swingcms / swingcms / cms / templates / cms / view_file.html

Full commit
{% load cms_filters %}
{% load i18n %}



<div id='file'>

    {% if obj.title %}
        <h2>{{ obj.title }}</h2><br />
    {% endif %}

    {% if obj.categories_list %}
        ({% for cat in obj.categories_list %}
	        {% if forloop.last %}
	            {{ cat }}
	        {% else %}
	            {{ cat }},
	        {% endif %}
        {% endfor %})<br />
        <br />
    {% endif %}

    <h5>{% trans 'added' %}:</h5> <div class="date">{{ obj.dt_addition|date:'j F Y' }}</div> 
    <h5>{% trans 'at' %}</h5> <div class="date">{{ obj.dt_addition|time:'H:i' }}</div><br />
    <h5>{% trans 'by' %}:</h5> <i>{{ obj.owner.username|default:_('unidentified') }}</i><br />
    <br />

    <a class='download' href='/serve/attachment/url?url={{ obj.file.url }}'>{% trans 'download' %}</a> 

    ( {% trans 'size' %}: <i>{{ obj.size|filesizeformat }}</i> )<br />
    <br />

    {% if obj.notes %}
        <div class='text'>{{ obj.notes|linebreaks|urlize }}</div>
    {% endif %}

</div>