From 95dacca6788e1c5eb4c985f9c5a85c6d006e265d Mon Sep 17 00:00:00 2001 From: m15o Date: Sun, 28 Nov 2021 22:38:08 +0100 Subject: [PATCH] Adding widgets --- assets/style.css | 5 ++ web/handler/common.go | 2 +- web/handler/handler.go | 5 +- web/handler/html.go | 128 +++++++++++++++++++++++++-- web/handler/html/common/layout.html | 2 +- web/handler/html/current_status.html | 42 +++++++++ web/handler/html/index.html | 8 +- web/handler/html/intro.html | 32 +++++++ web/handler/html/status-updater.html | 22 +++++ web/handler/html/user.html | 24 ++++- web/handler/intro_show.go | 13 +++ web/handler/user_show.go | 17 +++- web/handler/widget_show.go | 33 +++++++ 13 files changed, 313 insertions(+), 20 deletions(-) create mode 100644 web/handler/html/current_status.html create mode 100644 web/handler/html/intro.html create mode 100644 web/handler/html/status-updater.html create mode 100644 web/handler/intro_show.go create mode 100644 web/handler/widget_show.go diff --git a/assets/style.css b/assets/style.css index 1973a04..b0ee548 100644 --- a/assets/style.css +++ b/assets/style.css @@ -58,6 +58,11 @@ h1, h2 { margin-top: 0; } +.tools { + list-style-position: inside; + padding-left: 0; +} + @media (min-width: 650px) { .cols { grid-template-columns: repeat(2, 1fr); diff --git a/web/handler/common.go b/web/handler/common.go index cdff09d..f42fec1 100644 --- a/web/handler/common.go +++ b/web/handler/common.go @@ -22,7 +22,7 @@ var TplCommonMap = map[string]string{