Source

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

Diff from to

swingcms/cms/templates/cms/preview_file.html

 
 <div id='preview_file'>
 
-    {% if o.title %}
-        <h4>{{ o.title }}</h4><br />
-    {% endif %}
-        
-    <h5>{% trans 'published' %}:</h5> <div class="date">{{ o.datetime_addition|date:'j F Y' }}</div><br />
-    <h5>{% trans 'by' %}:</h5> <i>{{ o.contributor }}</i><br />	
-    <h5>{% trans 'size' %}:</h5> <i>{{ o.size|filesizeformat }}</i><br />
+    <div id='obj_header'>
+        {% if c.title %}
+            <h4>{{ c.title }}</h4>
+        {% endif %}
+    </div>
 
-    <a href="{{ o.file.url }}">{% trans 'download' %}</a> {% trans 'or' %} 
-    <span class='read_more'><a href='/view/file/{{ o.id }}'>{% trans 'read more' %}</a></span><br />
+    <b>{% trans 'added' %}:</b> <i>{{ c.dt_addition|date:'j F Y' }}</i><br />
+    <b>{% trans 'by' %}:</b> <i>{{ c.owner|default:_('unidentified') }}</i><br />
+    <b>{% trans 'size' %}:</b> <i>{{ c.size|filesizeformat }}</i><br />
+    <br />
+
+    <a href="{{ c.file.url }}">{% trans 'download' %}</a> {% trans 'or' %} 
+
+    <div id='obj_footer'>
+        <div class='read_more'><a href='/view/file/{{ c.id }}'>{% trans 'read more' %}</a></div>
+    </div>
 
 </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.