diff options
Diffstat (limited to 'templates/apps/content/domain.html')
-rw-r--r-- | templates/apps/content/domain.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/templates/apps/content/domain.html b/templates/apps/content/domain.html new file mode 100644 index 0000000..5efd236 --- /dev/null +++ b/templates/apps/content/domain.html @@ -0,0 +1,50 @@ +{% 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.percent.js"></script> + <script> + $(document).ready(function() { + $('#content').dataTable({ + "aoColumns": [ + null, + null, + { "sType": "file-size" }, + { "sType": "percent" } + ] + }); + }); + </script> +{% endblock %} +{% block content %} +<h1>Content for {{domain}}</h1> +<div> + <strong>Number of files:</strong> {{ total_files }} | <strong>Total storage:</strong> {{ total_bytecount|filesizeformat }} +</div> + <br> + <br> +<div> + <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="content"> + <thead> + <tr> + <th>Username</th><th>Number of files</th><th>Storage used</th><th>Percent</th> + </tr> + </thead> + <tbody> + {% for user in users %} + <tr> + <td>{{ user.username }}</td> + <td>{{ user.number_of_files }}</td> + <td>{{ user.bytecount|filesizeformat }}</td> + <td>{% widthratio user.bytecount total_bytecount 100 %}%</td> + </tr> + {% endfor %} + </tbody> + </table> +</div> +{% endblock %} + +{% block widgets %} + +{% endblock %}
\ No newline at end of file |