From 2b2ab0d4283b49842bf9c5608dbcc0a5ee327de3 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Fri, 30 Aug 2024 15:58:09 +0200 Subject: [PATCH] small bug fixes --- cmd/main.go | 4 ++-- web/templates/add-tag.html | 2 +- web/templates/hub.html | 2 +- web/templates/rejected-articles.html | 2 +- web/templates/show-all-users.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 8a131f4..0b60d29 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -73,8 +73,8 @@ func main() { mux.HandleFunc("GET /user/delete/{id}", f.DeleteUser(config, db, store)) mux.HandleFunc("GET /user/edit/{id}", f.EditUser(config, db, store)) mux.HandleFunc("GET /user/edit/self", f.EditSelf(config, db, store)) - mux.HandleFunc("GET /user/show-all/delete", f.ShowAllUsers(config, db, store, "delete-user")) - mux.HandleFunc("GET /user/show-all/edit", f.ShowAllUsers(config, db, store, "edit-user")) + mux.HandleFunc("GET /user/show-all/delete", f.ShowAllUsers(config, db, store, "delete")) + mux.HandleFunc("GET /user/show-all/edit", f.ShowAllUsers(config, db, store, "edit")) mux.HandleFunc("POST /article/resubmit/{id}", f.ResubmitArticle(config, db, store)) mux.HandleFunc("POST /article/submit", f.SubmitArticle(config, db, store)) diff --git a/web/templates/add-tag.html b/web/templates/add-tag.html index e79865a..29532af 100644 --- a/web/templates/add-tag.html +++ b/web/templates/add-tag.html @@ -4,7 +4,7 @@
- +
diff --git a/web/templates/hub.html b/web/templates/hub.html index 0c02910..e5f4b87 100644 --- a/web/templates/hub.html +++ b/web/templates/hub.html @@ -7,7 +7,7 @@

Autor

- +
diff --git a/web/templates/rejected-articles.html b/web/templates/rejected-articles.html index 34fb75b..fab22e5 100644 --- a/web/templates/rejected-articles.html +++ b/web/templates/rejected-articles.html @@ -4,7 +4,7 @@
{{range .RejectedArticles}} {{if index $.MyIDs .ID}} - diff --git a/web/templates/show-all-users.html b/web/templates/show-all-users.html index 044433d..4f86f33 100644 --- a/web/templates/show-all-users.html +++ b/web/templates/show-all-users.html @@ -3,7 +3,7 @@
{{range .Users}} -