summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/browse_head.html1
-rw-r--r--template/browse_item.html1
-rw-r--r--template/delete_head.html14
-rw-r--r--template/head.html7
4 files changed, 22 insertions, 1 deletions
diff --git a/template/browse_head.html b/template/browse_head.html
index 972ed51..6775012 100644
--- a/template/browse_head.html
+++ b/template/browse_head.html
@@ -7,6 +7,7 @@
<th class="file-icon"></th>
<th class="file-name">Name</th>
<th class="file-size">Size</th>
+ <th class="file-delete"></th>
</tr>
</thead>
<tbody>
diff --git a/template/browse_item.html b/template/browse_item.html
index 4a6bd77..1af8c89 100644
--- a/template/browse_item.html
+++ b/template/browse_item.html
@@ -2,4 +2,5 @@
<td><i class="fa-regular fa-@@icon@@"></i></td>
<td><a href="@@url@@">@@name@@</a></td>
<td class="file-size">@@size@@</td>
+ <td><a href="@@delete_url@@"><i class="fa-regular fa-trash"></i></a></td>
</tr>
diff --git a/template/delete_head.html b/template/delete_head.html
new file mode 100644
index 0000000..50f5426
--- /dev/null
+++ b/template/delete_head.html
@@ -0,0 +1,14 @@
+<h1><i class="fa-regular fa-folder-open"></i> Delete</h1>
+<p>path</p>
+<pre>@@path@@</pre>
+<hr />
+<div>
+<form action="@@submit_url@@" method="post" enctype="multipart/form-data">
+ <div>
+ <p>Deleting content cannot be undone. Proceed anyway?</p>
+ </div>
+ <div>
+ <input type="submit" value="Delete" />
+ </div>
+</form>
+</div>
diff --git a/template/head.html b/template/head.html
index 6c6ef5b..a36c475 100644
--- a/template/head.html
+++ b/template/head.html
@@ -24,7 +24,12 @@ tr:not(:last-child) {border-bottom:1px solid grey}
th, td {padding:0.2em}
th.file-name {text-align:left}
th.file-icon {width:1em}
-th.file-size {white-space:nowrap;}
+th.file-size {
+ width:2em;
+ white-space:nowrap;
+ text-align:right;
+}
+th.file-delete {width:1em}
td.file-size {
text-align:right;
white-space:nowrap;