summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/tpl')
-rw-r--r--srv/src/http/tpl/admin.html17
-rw-r--r--srv/src/http/tpl/assets.html6
-rw-r--r--srv/src/http/tpl/posts.html2
3 files changed, 25 insertions, 0 deletions
diff --git a/srv/src/http/tpl/admin.html b/srv/src/http/tpl/admin.html
new file mode 100644
index 0000000..24b2770
--- /dev/null
+++ b/srv/src/http/tpl/admin.html
@@ -0,0 +1,17 @@
+{{ define "body" }}
+
+<h1>Admin</h1>
+
+This is a directory of pages which are used for managing blog content. They are
+mostly left open to inspection, but you will not able to change
+anything without providing credentials.
+
+<ul>
+ <li><a href="{{ BlogURL "posts" }}">Posts</a></li>
+ <li><a href="{{ BlogURL "assets" }}">Assets</a></li>
+</ul>
+
+{{ end }}
+
+{{ template "base.html" . }}
+
diff --git a/srv/src/http/tpl/assets.html b/srv/src/http/tpl/assets.html
index 346d125..b439135 100644
--- a/srv/src/http/tpl/assets.html
+++ b/srv/src/http/tpl/assets.html
@@ -1,5 +1,7 @@
{{ define "body" }}
+<h1>Assets</h1>
+
<h2>Upload Asset</h2>
<p>
@@ -21,6 +23,8 @@
</div>
</form>
+{{ if gt (len .Payload.IDs) 0 }}
+
<h2>Existing Assets</h2>
<table>
@@ -44,4 +48,6 @@
{{ end }}
+{{ end }}
+
{{ template "base.html" . }}
diff --git a/srv/src/http/tpl/posts.html b/srv/src/http/tpl/posts.html
index d8f52a6..946c713 100644
--- a/srv/src/http/tpl/posts.html
+++ b/srv/src/http/tpl/posts.html
@@ -1,5 +1,7 @@
{{ define "body" }}
+ <h1>Posts</h1>
+
<p>
<a href="{{ BlogURL "posts/" }}?edit">
New Post