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/useflags
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/useflags')
-rw-r--r--pkg/app/handler/useflags/expand.templ10
-rw-r--r--pkg/app/handler/useflags/global.templ10
-rw-r--r--pkg/app/handler/useflags/local.templ10
-rw-r--r--pkg/app/handler/useflags/search.templ10
-rw-r--r--pkg/app/handler/useflags/show.templ16
5 files changed, 33 insertions, 23 deletions
diff --git a/pkg/app/handler/useflags/expand.templ b/pkg/app/handler/useflags/expand.templ
index c73d95b..0b7a8df 100644
--- a/pkg/app/handler/useflags/expand.templ
+++ b/pkg/app/handler/useflags/expand.templ
@@ -1,9 +1,11 @@
package useflags
-import "net/http"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "github.com/go-pg/pg/v10"
+import (
+ "github.com/go-pg/pg/v10"
+ "net/http"
+ "soko/pkg/database"
+ "soko/pkg/models"
+)
templ expand(useflags []models.Useflag) {
<div class="container mb-5">
diff --git a/pkg/app/handler/useflags/global.templ b/pkg/app/handler/useflags/global.templ
index edfcda2..0289dbb 100644
--- a/pkg/app/handler/useflags/global.templ
+++ b/pkg/app/handler/useflags/global.templ
@@ -1,9 +1,11 @@
package useflags
-import "net/http"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "github.com/go-pg/pg/v10"
+import (
+ "github.com/go-pg/pg/v10"
+ "net/http"
+ "soko/pkg/database"
+ "soko/pkg/models"
+)
templ global(useflags []models.Useflag) {
<div class="container mb-5">
diff --git a/pkg/app/handler/useflags/local.templ b/pkg/app/handler/useflags/local.templ
index cdc4a53..138b493 100644
--- a/pkg/app/handler/useflags/local.templ
+++ b/pkg/app/handler/useflags/local.templ
@@ -1,9 +1,11 @@
package useflags
-import "net/http"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "github.com/go-pg/pg/v10"
+import (
+ "github.com/go-pg/pg/v10"
+ "net/http"
+ "soko/pkg/database"
+ "soko/pkg/models"
+)
templ local(useflags []models.Useflag) {
<div class="container mb-5">
diff --git a/pkg/app/handler/useflags/search.templ b/pkg/app/handler/useflags/search.templ
index bcfa88a..d989f91 100644
--- a/pkg/app/handler/useflags/search.templ
+++ b/pkg/app/handler/useflags/search.templ
@@ -1,9 +1,11 @@
package useflags
-import "net/http"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "github.com/go-pg/pg/v10"
+import (
+ "github.com/go-pg/pg/v10"
+ "net/http"
+ "soko/pkg/database"
+ "soko/pkg/models"
+)
css searchButton() {
border-top-right-radius: 0.25rem !important;
diff --git a/pkg/app/handler/useflags/show.templ b/pkg/app/handler/useflags/show.templ
index 9a2d104..ab1c861 100644
--- a/pkg/app/handler/useflags/show.templ
+++ b/pkg/app/handler/useflags/show.templ
@@ -1,12 +1,14 @@
package useflags
-import "net/http"
-import "strconv"
-import "strings"
-import "soko/pkg/app/layout"
-import "soko/pkg/database"
-import "soko/pkg/models"
-import "github.com/go-pg/pg/v10"
+import (
+ "github.com/go-pg/pg/v10"
+ "net/http"
+ "soko/pkg/app/layout"
+ "soko/pkg/database"
+ "soko/pkg/models"
+ "strconv"
+ "strings"
+)
templ showUseflagHeader(useflag models.Useflag) {
<div class="kk-header-container">