From e4f7ff621810b6b1ac518e35f3e7d97a20892591 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 24 Jun 2025 22:37:47 +0100 Subject: [PATCH 1/2] Polish the list template --- conf.example.toml | 4 ++-- templates/list.tmpl.html | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/conf.example.toml b/conf.example.toml index afe9c25..98cc612 100644 --- a/conf.example.toml +++ b/conf.example.toml @@ -10,10 +10,10 @@ base = "base.tmpl.html" [static] dir = "/var/www/gonotes/static" -# These are not for changing! -root = "/static/" assets = [ { path = "css/bootstrap.min.css", url = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" }, { path = "css/tiny-mde.min.css", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.css" }, { path = "js/tiny-mde.min.js", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.js" }, + { path = "icons/pencil-square.svg", url = "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/pencil-square.svg" }, ] +# These are not for changing! diff --git a/templates/list.tmpl.html b/templates/list.tmpl.html index 908d784..f705d90 100644 --- a/templates/list.tmpl.html +++ b/templates/list.tmpl.html @@ -1,10 +1,12 @@ {{define "title"}}All Notes{{end}} {{define "main"}} - + {{end}} From 68a349f072888db8fb9cb7fbf616215a280e87af Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 24 Jun 2025 22:38:10 +0100 Subject: [PATCH 2/2] Markup links that should be buttons as buttons --- templates/view.tmpl.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/view.tmpl.html b/templates/view.tmpl.html index f52712a..2176027 100644 --- a/templates/view.tmpl.html +++ b/templates/view.tmpl.html @@ -3,9 +3,9 @@
{{.note.BodyRendered}}
-
- Edit - Delete +
+ Edit + Delete
{{end}}