summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/browse_head.html5
-rw-r--r--template/create_head.html17
-rw-r--r--template/head.html3
3 files changed, 24 insertions, 1 deletions
diff --git a/template/browse_head.html b/template/browse_head.html
index 6775012..8b53948 100644
--- a/template/browse_head.html
+++ b/template/browse_head.html
@@ -1,5 +1,8 @@
<h1><i class="fa-regular fa-folder-open"></i> Browsing</h1>
-<a href="@@upload_url@@">Upload here</a>
+<ul id="action-list">
+ <li><a href="@@upload_url@@">Upload here</a></li>
+ <li><a href="@@create_url@@">Create folder here</a></li>
+</ul>
<hr />
<table id="file-list">
<thead>
diff --git a/template/create_head.html b/template/create_head.html
new file mode 100644
index 0000000..5b273ce
--- /dev/null
+++ b/template/create_head.html
@@ -0,0 +1,17 @@
+<h1><i class="fa-regular fa-folder-open"></i> New folder</h1>
+<p>in</p>
+<pre>@@path@@</pre>
+<hr />
+<div>
+<form action="@@submit_url@@" method="post" enctype="multipart/form-data">
+ <div>
+ <label for="name">Folder name:</label>
+ </div>
+ <div>
+ <input type="text" name="name" id="name" />
+ </div>
+ <div>
+ <input type="submit" value="Create" />
+ </div>
+</form>
+</div>
diff --git a/template/head.html b/template/head.html
index a36c475..85f28e3 100644
--- a/template/head.html
+++ b/template/head.html
@@ -15,6 +15,9 @@ body {
font:1.2em/1.62 sans-serif;
}
a:visited { color:blue; }
+ul#action-list { padding:0; }
+ul#action-list li { display:inline; }
+ul#action-list li:not(:last-child):after { content:' |'; }
table#file-list {
width:100%;
border-collapse:collapse;