From 6acc69b519422171eb661edbe192bf2074ce6d8f Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Wed, 2 Apr 2014 17:25:00 +0200 Subject: Added more views for content. --- templates/apps/content/user.html | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'templates/apps/content/user.html') diff --git a/templates/apps/content/user.html b/templates/apps/content/user.html index b02ad77..697bba7 100644 --- a/templates/apps/content/user.html +++ b/templates/apps/content/user.html @@ -2,17 +2,28 @@ {% block js %} + + {% endblock %} -{% load content_tags %} {% block content %}

Content for {{username}}

- Number of files: {{ content|length }} | Total storage: {{ total_bytecount.bytecount__sum|humanize_bytes }} + Number of files: {{ content|length }} | Total storage: {{ total_bytecount.bytecount__sum|filesizeformat }}


@@ -26,14 +37,14 @@ {% for item in content %} - {{ item.created }} - {{ item.name }} + {{ item.created|date:"d/m/Y H:i:s" }} + {{ item.name }} {{ item.type }} - {{ item.bytecount|humanize_bytes }} - {{ item.modified }} + {{ item.bytecount|filesizeformat }} + {{ item.modified|date:"d/m/Y H:i:s" }} {{ item.views }} - {{ item.lastviewed }} + {{ item.lastviewed|date:"d/m/Y H:i:s" }} {% endfor %} -- cgit v1.1