blob: 697bba78c464f48d34facc4b0d74e553c1795fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{% extends "base.html" %}
{% block js %}
<link href="{{STATIC_URL}}/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{STATIC_URL}}/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="{{STATIC_URL}}/js/dataTables.fileSize.js"></script>
<script type="text/javascript" src="{{STATIC_URL}}/js/dataTables.dateEuro.js"></script>
<script>
$(document).ready(function() {
$('#content').dataTable({
"aoColumns": [
{ "sType": "date-euro" },
null,
null,
{ "sType": "file-size" },
{ "sType": "date-euro" },
null,
{ "sType": "date-euro" }
]
});
});
</script>
{% endblock %}
{% block content %}
<h1>Content for {{username}}</h1>
<div>
<strong>Number of files:</strong> {{ content|length }} | <strong>Total storage:</strong> {{ total_bytecount.bytecount__sum|filesizeformat }}
</div>
<br>
<br>
<div>
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="content">
<thead>
<tr>
<th>Created</th><th>Name</th><th>Type</th><th>Filesize</th><th>Modified</th><th>Views</th><th>Last viewed</th>
</tr>
</thead>
<tbody>
{% for item in content %}
<tr>
<td>{{ item.created|date:"d/m/Y H:i:s" }}</td>
<td><a href="{{ item.go_url }}">{{ item.name }}</a> <a href="{{ item.download_url }}"><i class="icon-download"></i></a></td>
<td>{{ item.type }}</td>
<td>{{ item.bytecount|filesizeformat }}</td>
<td>{{ item.modified|date:"d/m/Y H:i:s" }}</td>
<td>{{ item.views }}</td>
<td>{{ item.lastviewed|date:"d/m/Y H:i:s" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block widgets %}
{% endblock %}
|