2023-07-07 00:29:24 +05:30
|
|
|
<div class="ui container">
|
2021-11-24 21:42:54 +05:30
|
|
|
<div class="ui secondary stackable pointing menu">
|
2022-10-11 04:42:03 +05:30
|
|
|
<a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-repo"}} {{ctx.Locale.Tr "user.repositories"}}
|
2023-08-11 22:38:05 +05:30
|
|
|
{{if .RepoCount}}
|
|
|
|
<div class="ui small label">{{.RepoCount}}</div>
|
2023-04-20 00:28:36 +05:30
|
|
|
{{end}}
|
2021-11-24 21:42:54 +05:30
|
|
|
</a>
|
2023-07-07 00:29:24 +05:30
|
|
|
{{if .CanReadProjects}}
|
2023-01-20 17:12:33 +05:30
|
|
|
<a class="{{if .PageIsViewProjects}}active {{end}}item" href="{{$.Org.HomeLink}}/-/projects">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-project-symlink"}} {{ctx.Locale.Tr "user.projects"}}
|
2023-11-18 08:32:42 +05:30
|
|
|
{{if .ProjectCount}}
|
|
|
|
<div class="ui small label">{{.ProjectCount}}</div>
|
|
|
|
{{end}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</a>
|
2023-03-10 20:48:20 +05:30
|
|
|
{{end}}
|
|
|
|
{{if and .IsPackageEnabled .CanReadPackages}}
|
2022-03-30 14:12:47 +05:30
|
|
|
<a class="item" href="{{$.Org.HomeLink}}/-/packages">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}}
|
2022-03-30 14:12:47 +05:30
|
|
|
</a>
|
2022-03-31 23:01:53 +05:30
|
|
|
{{end}}
|
2023-03-10 20:48:20 +05:30
|
|
|
{{if and .IsRepoIndexerEnabled .CanReadCode}}
|
|
|
|
<a class="item" href="{{$.Org.HomeLink}}/-/code">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-code"}} {{ctx.Locale.Tr "org.code"}}
|
2022-10-11 04:42:03 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
2023-08-15 19:30:35 +05:30
|
|
|
{{if .NumMembers}}
|
2022-10-11 04:42:03 +05:30
|
|
|
<a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}}
|
2023-08-15 19:30:35 +05:30
|
|
|
<div class="ui small label">{{.NumMembers}}</div>
|
2021-11-24 21:42:54 +05:30
|
|
|
</a>
|
2023-08-15 19:30:35 +05:30
|
|
|
{{end}}
|
|
|
|
{{if .IsOrganizationMember}}
|
2022-10-11 04:42:03 +05:30
|
|
|
<a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
|
2021-11-24 21:42:54 +05:30
|
|
|
{{if .NumTeams}}
|
2023-04-20 00:28:36 +05:30
|
|
|
<div class="ui small label">{{.NumTeams}}</div>
|
2021-11-24 21:42:54 +05:30
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .IsOrganizationOwner}}
|
|
|
|
<div class="right menu">
|
2022-10-11 04:42:03 +05:30
|
|
|
<a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}}
|
2021-11-24 21:42:54 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|