From ad9cd7f0b077c624dab758fd03955cc11931c8df Mon Sep 17 00:00:00 2001 From: aceberg <1502200+aceberg@users.noreply.github.com> Date: Wed, 23 Aug 2023 02:03:50 +0700 Subject: [PATCH] Edit scan and timeout on panel page --- CHANGELOG.md | 5 +++++ internal/web/panels.go | 2 ++ internal/web/templates/panel-edit.html | 26 ++++++++++++++++++++++---- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aaf5a7..47f8a46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ # Change Log All notable changes to this project will be documented in this file. +## [1.0.8] - 2023-08-23 +### Changed +- Monospace font in edit board file [Issue #3](https://github.com/aceberg/miniboard/issues/3) +- Edit scan and timeout on panel page + ## [1.0.7] - 2023-07-23 ### Fixed - Uptime sort issue diff --git a/internal/web/panels.go b/internal/web/panels.go index 9d0f4c5..de9b5c8 100644 --- a/internal/web/panels.go +++ b/internal/web/panels.go @@ -42,6 +42,8 @@ func panelsHandler(w http.ResponseWriter, r *http.Request) { yaml.Write(AppConfig.YamlPath, AllLinks) } + + http.Redirect(w, r, r.Header.Get("Referer"), 302) } guiData.Config = AppConfig diff --git a/internal/web/templates/panel-edit.html b/internal/web/templates/panel-edit.html index 161c604..9632920 100644 --- a/internal/web/templates/panel-edit.html +++ b/internal/web/templates/panel-edit.html @@ -10,11 +10,29 @@

Edit panel {{ $key }}

-
- - - +
+ Scan   + + +
+ {{ if .Scan }} + + {{ else }} + + {{ end }} +
+ Timeout + + +
+
+
+
+ + + +