aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-27 22:36:40 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-27 22:36:40 +0300
commitf7e25c6d0c6e99f00131cc7837f02ff62913ca6f (patch)
tree00872a693579389b4a1c74876cfb707706060acb /pkg/app/handler/about
parentabout: add link to commit when showing soko's current commit id (diff)
downloadsoko-f7e25c6d0c6e99f00131cc7837f02ff62913ca6f.tar.gz
soko-f7e25c6d0c6e99f00131cc7837f02ff62913ca6f.tar.bz2
soko-f7e25c6d0c6e99f00131cc7837f02ff62913ca6f.zip
templ: fmt imports
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'pkg/app/handler/about')
-rw-r--r--pkg/app/handler/about/feedback.templ6
-rw-r--r--pkg/app/handler/about/feeds.templ6
-rw-r--r--pkg/app/handler/about/help.templ6
-rw-r--r--pkg/app/handler/about/index.templ10
-rw-r--r--pkg/app/handler/about/status.templ12
5 files changed, 25 insertions, 15 deletions
diff --git a/pkg/app/handler/about/feedback.templ b/pkg/app/handler/about/feedback.templ
index f29117e..0bf6b2c 100644
--- a/pkg/app/handler/about/feedback.templ
+++ b/pkg/app/handler/about/feedback.templ
@@ -1,7 +1,9 @@
package about
-import "net/http"
-import "soko/pkg/app/layout"
+import (
+ "net/http"
+ "soko/pkg/app/layout"
+)
templ feedback() {
<div class="container mb-5">
diff --git a/pkg/app/handler/about/feeds.templ b/pkg/app/handler/about/feeds.templ
index 0116ee6..af61c7f 100644
--- a/pkg/app/handler/about/feeds.templ
+++ b/pkg/app/handler/about/feeds.templ
@@ -1,7 +1,9 @@
package about
-import "net/http"
-import "soko/pkg/app/layout"
+import (
+ "net/http"
+ "soko/pkg/app/layout"
+)
templ feeds() {
<div class="container mb-5">
diff --git a/pkg/app/handler/about/help.templ b/pkg/app/handler/about/help.templ
index 5ef1209..e00ef8c 100644
--- a/pkg/app/handler/about/help.templ
+++ b/pkg/app/handler/about/help.templ
@@ -1,7 +1,9 @@
package about
-import "net/http"
-import "soko/pkg/app/layout"
+import (
+ "net/http"
+ "soko/pkg/app/layout"
+)
templ help() {
<div class="container mb-5">
diff --git a/pkg/app/handler/about/index.templ b/pkg/app/handler/about/index.templ
index 16a0b5f..aa5130d 100644
--- a/pkg/app/handler/about/index.templ
+++ b/pkg/app/handler/about/index.templ
@@ -1,9 +1,11 @@
package about
-import "net/http"
-import "runtime/debug"
-import "soko/pkg/app/layout"
-import "soko/pkg/config"
+import (
+ "net/http"
+ "runtime/debug"
+ "soko/pkg/app/layout"
+ "soko/pkg/config"
+)
func getCommitId() string {
if info, ok := debug.ReadBuildInfo(); ok {
diff --git a/pkg/app/handler/about/status.templ b/pkg/app/handler/about/status.templ
index 9829345..f669ec4 100644
--- a/pkg/app/handler/about/status.templ
+++ b/pkg/app/handler/about/status.templ
@@ -1,10 +1,12 @@
package about
-import "net/http"
-import "soko/pkg/app/layout"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "time"
+import (
+ "net/http"
+ "soko/pkg/app/layout"
+ "soko/pkg/database"
+ "soko/pkg/models"
+ "time"
+)
templ status(applications []*models.Application) {
<div class="container mb-5">