summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/browse_file.html1
-rw-r--r--template/browse_foot.html2
-rw-r--r--template/browse_head.html10
-rw-r--r--template/browse_item.html5
-rw-r--r--template/foot.html1
-rw-r--r--template/head.html32
6 files changed, 50 insertions, 1 deletions
diff --git a/template/browse_file.html b/template/browse_file.html
deleted file mode 100755
index 48834dc..0000000
--- a/template/browse_file.html
+++ /dev/null
@@ -1 +0,0 @@
-<li><a href="@@url@@">@@name@@</a></li>
diff --git a/template/browse_foot.html b/template/browse_foot.html
new file mode 100644
index 0000000..02ee59f
--- /dev/null
+++ b/template/browse_foot.html
@@ -0,0 +1,2 @@
+</tbody>
+</table>
diff --git a/template/browse_head.html b/template/browse_head.html
new file mode 100644
index 0000000..48ffee4
--- /dev/null
+++ b/template/browse_head.html
@@ -0,0 +1,10 @@
+<h1><i class="fa-regular fa-folder-open"></i> Vault</h1>
+<table id="file-list">
+ <thead>
+ <tr>
+ <th class="file-icon"></th>
+ <th class="file-name">Name</th>
+ <th class="file-size">Size</th>
+ </tr>
+ </thead>
+ <tbody>
diff --git a/template/browse_item.html b/template/browse_item.html
new file mode 100644
index 0000000..4a6bd77
--- /dev/null
+++ b/template/browse_item.html
@@ -0,0 +1,5 @@
+<tr>
+ <td><i class="fa-regular fa-@@icon@@"></i></td>
+ <td><a href="@@url@@">@@name@@</a></td>
+ <td class="file-size">@@size@@</td>
+</tr>
diff --git a/template/foot.html b/template/foot.html
new file mode 100644
index 0000000..a446d53
--- /dev/null
+++ b/template/foot.html
@@ -0,0 +1 @@
+</body>
diff --git a/template/head.html b/template/head.html
new file mode 100644
index 0000000..d77eb49
--- /dev/null
+++ b/template/head.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta charset=utf-8">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<title>Vault</title>
+<head>
+ <link href="/static/fontawesome-6.5.1/css/fontawesome.css" rel="stylesheet">
+ <link href="/static/fontawesome-6.5.1/css/solid.css" rel="stylesheet">
+</head>
+<style>
+body {
+ margin:1em auto;
+ max-width:40em;
+ padding: 0 .62em;
+ font:1.2em/1.62 sans-serif;
+}
+table#file-list {
+ width:100%;
+ border-collapse:collapse;
+}
+table > thead > tr {border-bottom:1px solid black}
+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;}
+td.file-size {
+ text-align:right;
+ white-space:nowrap;
+}
+</style>
+<body>