summaryrefslogtreecommitdiffstats
path: root/templates/org/menu.tmpl
blob: 1f7b1216a62692180300d85f0bbd35d905ddeccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="ui tabs container">
	<div class="ui secondary stackable pointing menu">
		<a class="{{if .PageIsViewRepositories}}active{{end}} item" href="{{$.Org.HomeLink}}">
			{{svg "octicon-repo"}} {{.i18n.Tr "user.repositories"}}
		</a>
		<a class="item" href="{{$.Org.HomeLink}}/-/packages">
			{{svg "octicon-package"}} {{.i18n.Tr "packages.title"}}
		</a>
		{{if .IsOrganizationMember}}
			<a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
				{{svg "octicon-organization"}}&nbsp;{{$.i18n.Tr "org.people"}}
				{{if .NumMembers}}
					<div class="ui primary label">{{.NumMembers}}</div>
				{{end}}
			</a>
			<a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams">
				{{svg "octicon-people"}}&nbsp;{{$.i18n.Tr "org.teams"}}
				{{if .NumTeams}}
					<div class="ui black label">{{.NumTeams}}</div>
				{{end}}
			</a>
		{{end}}

		{{if .IsOrganizationOwner}}
			<div class="right menu">
				<a class="{{if .PageIsOrgSettings}}active{{end}} item" href="{{.OrgLink}}/settings">
				{{svg "octicon-tools"}} {{.i18n.Tr "repo.settings"}}
				</a>
			</div>
		{{end}}
	</div>
</div>