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

{% 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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.