From d75f96d5ce16160bfb6abec8ba0820f57a986eac Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Fri, 31 Dec 2021 01:39:31 +0500 Subject: [PATCH] Rename /admin/user/new to /admin/new-user There was no /admin/user path to begin with! --- views/admin.qtpl | 2 +- views/admin.qtpl.go | 2 +- web/admin.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views/admin.qtpl b/views/admin.qtpl index 921c1e0..ef68b8e 100644 --- a/views/admin.qtpl +++ b/views/admin.qtpl @@ -42,7 +42,7 @@

{%s lc.Get("admin.users_title") %}

- {%s lc.Get("admin.users_create") %} + {%s lc.Get("admin.users_create") %}
diff --git a/views/admin.qtpl.go b/views/admin.qtpl.go index 4943e80..64de23e 100644 --- a/views/admin.qtpl.go +++ b/views/admin.qtpl.go @@ -144,7 +144,7 @@ func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User, qw422016.N().S(`
- `) + `) //line views/admin.qtpl:45 qw422016.E().S(lc.Get("admin.users_create")) //line views/admin.qtpl:45 diff --git a/web/admin.go b/web/admin.go index 876bbf6..09d517f 100644 --- a/web/admin.go +++ b/web/admin.go @@ -23,7 +23,7 @@ func initAdmin(r *mux.Router) { r.HandleFunc("/shutdown", handlerAdminShutdown).Methods(http.MethodPost) r.HandleFunc("/reindex-users", handlerAdminReindexUsers).Methods(http.MethodPost) - r.HandleFunc("/user/new", handlerAdminUserNew).Methods(http.MethodGet, http.MethodPost) + r.HandleFunc("/new-user", handlerAdminUserNew).Methods(http.MethodGet, http.MethodPost) r.HandleFunc("/users/{username}/edit", handlerAdminUserEdit).Methods(http.MethodGet, http.MethodPost) r.HandleFunc("/users/{username}/delete", handlerAdminUserDelete).Methods(http.MethodGet, http.MethodPost) r.HandleFunc("/users", handlerAdminUsers)