aboutsummaryrefslogtreecommitdiff
path: root/interface/admin_files.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'interface/admin_files.tmpl')
-rw-r--r--interface/admin_files.tmpl21
1 files changed, 14 insertions, 7 deletions
diff --git a/interface/admin_files.tmpl b/interface/admin_files.tmpl
index 76b63d5..b0828b6 100644
--- a/interface/admin_files.tmpl
+++ b/interface/admin_files.tmpl
@@ -11,18 +11,25 @@
</head>
<body>
<div id="header">
- cargohold - Administration
+ <h1>cargohold - <span class="dirname">{{ directory }}</span></h1>
+ <a class="button" href="/admin">Back to overview</a>
</div>
+
<div id="container">
- {% if message %}
- <div id="message">
- {{ message }}
- </div>
- {% endif %}
+ <div id="topmenu">
+ <a class="button active" href="/admin/{{ directory }}">View</a>
+ <a class="button" href="/admin/{{ directory }}/upload">Upload</a>
+ <a class="button" href="/admin/{{ directory }}/rename">Rename</a>
+ <a class="button" href="/admin/{{ directory }}/aliases">Links</a>
+ <a class="button delete" href="/admin/{{ directory }}/delete">Delete</a>
+ </div>
+
<div id="dirlisting">
{% for file in listing %}
<div class="entry">
- <a class="file" href="#">{{ file.name }}</a>
+ <a class="entry" href="/admin/{{ directory }}/file/{{ file.name }}">{{ file.name }}</a>
+ <div class="info">{{ (file.size / 1024 / 1024) | round(2, "ceil") }} MB</div>
+ <a class="button delete" href="/admin/{{ directory }}/delete/{{ file.name }}">Delete</a>
</div>
{% endfor %}
</div>