aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-05 09:27:42 -0400
committerUnknwon <u@gogs.io>2017-04-05 09:27:42 -0400
commit497cdc925037e8a9172c7b2834790b587865fa9a (patch)
tree46a325e18d8b4dd0cdb9163e49e487595418bee5 /cmd
parentedaf14f2b6fd86f8dec99f67512a5c0095e391dc (diff)
user/setting: reorder navbar
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 86cb7732..6442a115 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -212,18 +212,17 @@ func runWeb(ctx *cli.Context) error {
m.Combo("/ssh").Get(user.SettingsSSHKeys).
Post(bindIgnErr(form.AddSSHKey{}), user.SettingsSSHKeysPost)
m.Post("/ssh/delete", user.DeleteSSHKey)
- m.Combo("/applications").Get(user.SettingsApplications).
- Post(bindIgnErr(form.NewAccessToken{}), user.SettingsApplicationsPost)
- m.Post("/applications/delete", user.SettingsDeleteApplication)
-
- m.Group("/organizations", func() {
- m.Get("", user.SettingsOrganizations)
- m.Post("/leave", user.SettingsLeaveOrganization)
- })
m.Group("/repositories", func() {
m.Get("", user.SettingsRepos)
m.Post("/leave", user.SettingsLeaveRepo)
})
+ m.Group("/organizations", func() {
+ m.Get("", user.SettingsOrganizations)
+ m.Post("/leave", user.SettingsLeaveOrganization)
+ })
+ m.Combo("/applications").Get(user.SettingsApplications).
+ Post(bindIgnErr(form.NewAccessToken{}), user.SettingsApplicationsPost)
+ m.Post("/applications/delete", user.SettingsDeleteApplication)
m.Route("/delete", "GET,POST", user.SettingsDelete)
}, reqSignIn, func(ctx *context.Context) {
ctx.Data["PageIsUserSettings"] = true