From c5564162515f5d6afafe9082e8dbb2ed63a9d256 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 12 Aug 2023 23:05:18 +0200 Subject: Admin interfaces --- interface/admin_aliases.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ interface/admin_delete.tmpl | 21 ++++++++++++++++----- interface/admin_dirs.tmpl | 6 +++--- interface/admin_files.tmpl | 21 ++++++++++++++------- interface/admin_rename.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ interface/admin_upload.tmpl | 36 ++++++++++++++++++++++++++++++++++++ interface/listing.htm | 3 ++- 7 files changed, 151 insertions(+), 16 deletions(-) create mode 100644 interface/admin_aliases.tmpl create mode 100644 interface/admin_rename.tmpl create mode 100644 interface/admin_upload.tmpl (limited to 'interface') diff --git a/interface/admin_aliases.tmpl b/interface/admin_aliases.tmpl new file mode 100644 index 0000000..97315f7 --- /dev/null +++ b/interface/admin_aliases.tmpl @@ -0,0 +1,40 @@ + + + + + + + cargohold + + + + + + + +
+
+ View + Upload + Rename + Links + Delete +
+ +
+ {% for alias in aliases %} +
+ {{ baseurl }}{{ alias.alias }} + Download + Upload + Delete + Previews +
+ {% endfor %} +
+
+ + diff --git a/interface/admin_delete.tmpl b/interface/admin_delete.tmpl index bf6d8a2..102d908 100644 --- a/interface/admin_delete.tmpl +++ b/interface/admin_delete.tmpl @@ -11,24 +11,35 @@
+
+ View + Upload + Rename + Links + Delete +
+
- This will delete the directory {{ directory }}. + This will delete the directory {{ directory }}.
This directory still contains {{ listing | length }} files.
+
{% for file in listing %}
- {{ file.name }} + {{ file.name }}
{% endfor %}
+
diff --git a/interface/admin_dirs.tmpl b/interface/admin_dirs.tmpl index cebaa62..d7c5317 100644 --- a/interface/admin_dirs.tmpl +++ b/interface/admin_dirs.tmpl @@ -11,7 +11,7 @@
{% if error %} @@ -28,9 +28,9 @@
{% for dir in listing %}
- {{dir.name}} + {{dir.name}} Rename - Aliases + {{dir.nlinks}} Links Delete
{% endfor %} 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 @@ +
- {% if message %} -
- {{ message }} -
- {% endif %} +
+ View + Upload + Rename + Links + Delete +
+
{% for file in listing %}
- {{ file.name }} + {{ file.name }} +
{{ (file.size / 1024 / 1024) | round(2, "ceil") }} MB
+ Delete
{% endfor %}
diff --git a/interface/admin_rename.tmpl b/interface/admin_rename.tmpl new file mode 100644 index 0000000..a760cb5 --- /dev/null +++ b/interface/admin_rename.tmpl @@ -0,0 +1,40 @@ + + + + + + + cargohold + + + + + + + +
+
+ View + Upload + Rename + Links + Delete +
+ +
+ This will rename the directory {{ directory }}. +
+ All aliases will be kept intact. +
+ + + +
+ Rename +
+
+ + diff --git a/interface/admin_upload.tmpl b/interface/admin_upload.tmpl new file mode 100644 index 0000000..be5b298 --- /dev/null +++ b/interface/admin_upload.tmpl @@ -0,0 +1,36 @@ + + + + + + + cargohold + + + + + + + +
+
+ View + Upload + Rename + Links + Delete +
+ +
+ TBD +
+ +
+ Upload +
+
+ + diff --git a/interface/listing.htm b/interface/listing.htm index 5866825..7cc2b62 100644 --- a/interface/listing.htm +++ b/interface/listing.htm @@ -11,7 +11,7 @@
@@ -55,5 +55,6 @@
+ -- cgit v1.2.3