From c4a95b95b24854231cfa19f67f4056625f5a6f01 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 21 Nov 2022 20:15:59 +0000 Subject: [PATCH] added buttons to view/edit page on both pages --- templates/watch/edit.html | 5 +++++ templates/watch/view.html | 30 +++++++++++++++++------------- todo.md | 3 +-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/templates/watch/edit.html b/templates/watch/edit.html index 58310fe..fc0448d 100644 --- a/templates/watch/edit.html +++ b/templates/watch/edit.html @@ -44,6 +44,11 @@ Open Log + + + View Watch + + diff --git a/templates/watch/view.html b/templates/watch/view.html index 5f4c92d..5e3d45c 100644 --- a/templates/watch/view.html +++ b/templates/watch/view.html @@ -7,19 +7,23 @@
-

{{ .Watch.Name }}

- {{ if not .Watch.CronEntry }} -
No Schedule
- {{ else }} -
-
Previous
-
{{ .Watch.CronEntry.Prev.Format "2006-01-02 15:04:05" }}
-
-
-
Next
-
{{ .Watch.CronEntry.Next.Format "2006-01-02 15:04:05" }}
-
- {{ end }} +
+ {{ .Watch.Name }} + Edit +
+ {{ if not .Watch.CronEntry }} +
No Schedule
+ {{ else }} +
+
Previous
+
{{ .Watch.CronEntry.Prev.Format "2006-01-02 15:04:05" }}
+
+
+
Next
+
{{ .Watch.CronEntry.Next.Format "2006-01-02 15:04:05" }}
+
+ {{ end }} +
diff --git a/todo.md b/todo.md index a1662b9..028c60b 100644 --- a/todo.md +++ b/todo.md @@ -1,5 +1,4 @@ # Todo - make generic 'notifier' interface - header/post body for get url ? -- add lua filter -- edit button on watch view page \ No newline at end of file +- add lua filter \ No newline at end of file