From 80ed8a317c59c9905b6ef0d18bec6bed0eb11a44 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Fri, 2 Sep 2016 17:50:15 +0200 Subject: Add admin interface + the config option to run scribbled locally without internet access. --- templates/admin.html | 23 +++++++++++++++++++++++ templates/footer.html | 11 +++++++++-- templates/header.html | 7 ++++++- 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 templates/admin.html (limited to 'templates') diff --git a/templates/admin.html b/templates/admin.html new file mode 100644 index 0000000..c76e12c --- /dev/null +++ b/templates/admin.html @@ -0,0 +1,23 @@ +{{template "header.html" .}} + +{{template "navbar.html" .}} + +
+
+
+
+ {{range .Notes}} +
+ Edit + +
+

{{.Title}}

+
+ {{RenderMarkdown .Post}} + {{end}} +
+
+
+
+ +{{template "footer.html"}} diff --git a/templates/footer.html b/templates/footer.html index 4f57edf..2a743c4 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -7,9 +7,15 @@ +{{if isLocal}} + + + + +{{else}} - - + + +{{end}} diff --git a/templates/header.html b/templates/header.html index 432b263..bdf054f 100644 --- a/templates/header.html +++ b/templates/header.html @@ -8,8 +8,13 @@ {{else}} Welcome | Scribble {{end}} + {{if isLocal}} + + + {{else }} - + + {{end}} -- cgit v1.2.3