1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-21 07:46:52 +00:00

Rename /admin/user/new to /admin/new-user

There was no /admin/user path to begin with!
This commit is contained in:
Timur Ismagilov 2021-12-31 01:39:31 +05:00
parent 0326816086
commit d75f96d5ce
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@
<h1>{%s lc.Get("admin.users_title") %}</h1>
<form action="/admin/reindex-users" method="post">
<a class="btn" href="/admin/user/new">{%s lc.Get("admin.users_create") %}</a>
<a class="btn" href="/admin/new-user">{%s lc.Get("admin.users_create") %}</a>
<button class="btn" type="submit">{%s lc.Get("admin.users_reindex") %}</button>
</form>

View File

@ -144,7 +144,7 @@ func StreamAdminUsersPanelHTML(qw422016 *qt422016.Writer, userList []*user.User,
qw422016.N().S(`</h1>
<form action="/admin/reindex-users" method="post">
<a class="btn" href="/admin/user/new">`)
<a class="btn" href="/admin/new-user">`)
//line views/admin.qtpl:45
qw422016.E().S(lc.Get("admin.users_create"))
//line views/admin.qtpl:45

View File

@ -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)