diff --git a/auth/web.go b/auth/web.go
index 479b002..690fa2d 100644
--- a/auth/web.go
+++ b/auth/web.go
@@ -39,7 +39,7 @@ func handlerUserList(w http.ResponseWriter, rq *http.Request) {
lc := l18n.FromRequest(rq)
w.Header().Set("Content-Type", mime.TypeByExtension(".html"))
w.WriteHeader(http.StatusOK)
- w.Write([]byte(viewutil.Base(viewutil.MetaFrom(w, rq), lc.Get("ui.users_title"), UserList(lc), []string{})))
+ w.Write([]byte(viewutil.Base(viewutil.MetaFrom(w, rq), lc.Get("ui.users_title"), UserList(lc), map[string]string{})))
}
func handlerLock(w http.ResponseWriter, rq *http.Request) {
@@ -57,7 +57,7 @@ func handlerRegister(w http.ResponseWriter, rq *http.Request) {
viewutil.MetaFrom(w, rq),
lc.Get("auth.register_title"),
Register(rq),
- []string{},
+ map[string]string{},
),
)
return
@@ -82,7 +82,7 @@ func handlerRegister(w http.ResponseWriter, rq *http.Request) {
err.Error(),
lc.Get("auth.try_again"),
),
- []string{},
+ map[string]string{},
),
)
return
@@ -113,7 +113,7 @@ func handlerLogout(w http.ResponseWriter, rq *http.Request) {
}
_, _ = io.WriteString(
w,
- viewutil.Base(viewutil.MetaFrom(w, rq), lc.Get("auth.logout_title"), Logout(can, lc), []string{}),
+ viewutil.Base(viewutil.MetaFrom(w, rq), lc.Get("auth.logout_title"), Logout(can, lc), map[string]string{}),
)
} else if rq.Method == http.MethodPost {
user.LogoutFromRequest(w, rq)
@@ -133,7 +133,7 @@ func handlerLogin(w http.ResponseWriter, rq *http.Request) {
viewutil.MetaFrom(w, rq),
lc.Get("auth.login_title"),
Login(lc),
- []string{},
+ map[string]string{},
),
)
} else if rq.Method == http.MethodPost {
@@ -145,7 +145,7 @@ func handlerLogin(w http.ResponseWriter, rq *http.Request) {
if err != nil {
w.Header().Set("Content-Type", "text/html;charset=utf-8")
w.WriteHeader(http.StatusInternalServerError)
- _, _ = io.WriteString(w, viewutil.Base(viewutil.MetaFrom(w, rq), err.Error(), LoginError(err.Error(), lc), []string{}))
+ _, _ = io.WriteString(w, viewutil.Base(viewutil.MetaFrom(w, rq), err.Error(), LoginError(err.Error(), lc), map[string]string{}))
return
}
http.Redirect(w, rq, "/", http.StatusSeeOther)
@@ -192,7 +192,7 @@ func handlerTelegramLogin(w http.ResponseWriter, rq *http.Request) {
err.Error(),
lc.Get("auth.go_login"),
),
- []string{},
+ map[string]string{},
),
)
return
@@ -213,7 +213,7 @@ func handlerTelegramLogin(w http.ResponseWriter, rq *http.Request) {
err.Error(),
lc.Get("auth.go_login"),
),
- []string{},
+ map[string]string{},
),
)
return
diff --git a/misc/handlers.go b/misc/handlers.go
index 49c2897..fee9b6e 100644
--- a/misc/handlers.go
+++ b/misc/handlers.go
@@ -125,7 +125,7 @@ func handlerAbout(w http.ResponseWriter, rq *http.Request) {
viewutil.MetaFrom(w, rq),
title,
AboutHTML(lc),
- []string{},
+ map[string]string{},
))
if err != nil {
log.Println(err)
diff --git a/viewutil/base.html b/viewutil/base.html
index 6e91092..bdba452 100644
--- a/viewutil/base.html
+++ b/viewutil/base.html
@@ -15,7 +15,7 @@
{{range .HeadElements}}{{.}}{{end}}
-
+