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:
parent
0326816086
commit
d75f96d5ce
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user