Browse Source

show org members

tags/v1.21.12.1
lewis 4 years ago
parent
commit
501f7f060e
4 changed files with 12 additions and 7 deletions
  1. +0
    -0
      routers/org/members.go
  2. +6
    -1
      routers/routes/routes.go
  3. +0
    -0
      templates/org/home.tmpl
  4. +6
    -6
      templates/org/navber.tmpl

+ 0
- 0
routers/org/members.go View File


+ 6
- 1
routers/routes/routes.go View File

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


+ 0
- 0
templates/org/home.tmpl View File


+ 6
- 6
templates/org/navber.tmpl View File

@@ -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}}&nbsp;{{$.i18n.Tr "org.home"}} {{svg "octicon-home" 16}}&nbsp;{{$.i18n.Tr "org.home"}}
</a> </a>
<a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
{{svg "octicon-organization" 16}}&nbsp;{{$.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}}&nbsp;{{$.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}}&nbsp;{{$.i18n.Tr "org.teams"}} {{svg "octicon-jersey" 16}}&nbsp;{{$.i18n.Tr "org.teams"}}
</a> </a>
@@ -23,10 +23,10 @@
{{svg "octicon-home" 16}}&nbsp;{{$.i18n.Tr "org.home"}} {{svg "octicon-home" 16}}&nbsp;{{$.i18n.Tr "org.home"}}
</a> </a>
{{end}} {{end}}
<a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
{{svg "octicon-organization" 16}}&nbsp;{{$.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}}&nbsp;{{$.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}}&nbsp;{{$.i18n.Tr "org.teams"}} {{svg "octicon-jersey" 16}}&nbsp;{{$.i18n.Tr "org.teams"}}
</a> </a>


Loading…
Cancel
Save