| @@ -615,6 +615,11 @@ func RegisterRoutes(m *macaron.Macaron) { | |||||
| //reqRepoBlockChainWriter := context.RequireRepoWriter(models.UnitTypeBlockChain) | //reqRepoBlockChainWriter := context.RequireRepoWriter(models.UnitTypeBlockChain) | ||||
| // ***** START: Organization ***** | // ***** START: Organization ***** | ||||
| m.Group("/org", func() { | |||||
| m.Group("/:org", func() { | |||||
| m.Get("/members", org.Members) | |||||
| }, context.OrgAssignment()) | |||||
| }) | |||||
| m.Group("/org", func() { | m.Group("/org", func() { | ||||
| m.Group("", func() { | m.Group("", func() { | ||||
| m.Get("/create", org.Create) | m.Get("/create", org.Create) | ||||
| @@ -625,7 +630,7 @@ func RegisterRoutes(m *macaron.Macaron) { | |||||
| m.Get("/dashboard", user.Dashboard) | m.Get("/dashboard", user.Dashboard) | ||||
| m.Get("/^:type(issues|pulls)$", user.Issues) | m.Get("/^:type(issues|pulls)$", user.Issues) | ||||
| m.Get("/milestones", reqMilestonesDashboardPageEnabled, user.Milestones) | m.Get("/milestones", reqMilestonesDashboardPageEnabled, user.Milestones) | ||||
| m.Get("/members", org.Members) | |||||
| //m.Get("/members", org.Members) | |||||
| m.Post("/members/action/:action", org.MembersAction) | m.Post("/members/action/:action", org.MembersAction) | ||||
| m.Get("/teams", org.Teams) | m.Get("/teams", org.Teams) | ||||
| @@ -3,10 +3,10 @@ | |||||
| <a class="{{if $.PageIsOrgHome}}active{{end}} item" href="{{.HomeLink}}"> | <a class="{{if $.PageIsOrgHome}}active{{end}} item" href="{{.HomeLink}}"> | ||||
| {{svg "octicon-home" 16}} {{$.i18n.Tr "org.home"}} | {{svg "octicon-home" 16}} {{$.i18n.Tr "org.home"}} | ||||
| </a> | </a> | ||||
| <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> | |||||
| {{svg "octicon-organization" 16}} {{$.i18n.Tr "org.people"}} | |||||
| </a> | |||||
| {{if or ($.IsOrganizationMember) ($.IsOrganizationOwner)}} | {{if or ($.IsOrganizationMember) ($.IsOrganizationOwner)}} | ||||
| <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> | |||||
| {{svg "octicon-organization" 16}} {{$.i18n.Tr "org.people"}} | |||||
| </a> | |||||
| <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> | <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> | ||||
| {{svg "octicon-jersey" 16}} {{$.i18n.Tr "org.teams"}} | {{svg "octicon-jersey" 16}} {{$.i18n.Tr "org.teams"}} | ||||
| </a> | </a> | ||||
| @@ -23,10 +23,10 @@ | |||||
| {{svg "octicon-home" 16}} {{$.i18n.Tr "org.home"}} | {{svg "octicon-home" 16}} {{$.i18n.Tr "org.home"}} | ||||
| </a> | </a> | ||||
| {{end}} | {{end}} | ||||
| <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> | |||||
| {{svg "octicon-organization" 16}} {{$.i18n.Tr "org.people"}} | |||||
| </a> | |||||
| {{if or ($.IsOrganizationMember) ($.IsOrganizationOwner)}} | {{if or ($.IsOrganizationMember) ($.IsOrganizationOwner)}} | ||||
| <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> | |||||
| {{svg "octicon-organization" 16}} {{$.i18n.Tr "org.people"}} | |||||
| </a> | |||||
| <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> | <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> | ||||
| {{svg "octicon-jersey" 16}} {{$.i18n.Tr "org.teams"}} | {{svg "octicon-jersey" 16}} {{$.i18n.Tr "org.teams"}} | ||||
| </a> | </a> | ||||