2023-07-06 21:59:24 +03:00
|
|
|
<div class="ui container">
|
2021-11-24 19:12:54 +03:00
|
|
|
<div class="ui secondary stackable pointing menu">
|
2022-10-11 02:12:03 +03:00
|
|
|
<a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}}
|
2023-04-20 20:33:30 +03:00
|
|
|
{{if .ContextUser.NumRepos}}
|
|
|
|
<div class="ui small label">{{.ContextUser.NumRepos}}</div>
|
2023-04-19 21:58:36 +03:00
|
|
|
{{end}}
|
2021-11-24 19:12:54 +03:00
|
|
|
</a>
|
2023-07-06 21:59:24 +03:00
|
|
|
{{if .CanReadProjects}}
|
2023-01-20 14:42:33 +03:00
|
|
|
<a class="{{if .PageIsViewProjects}}active {{end}}item" href="{{$.Org.HomeLink}}/-/projects">
|
2023-03-06 19:32:56 +03:00
|
|
|
{{svg "octicon-project-symlink"}} {{.locale.Tr "user.projects"}}
|
2023-01-20 14:42:33 +03:00
|
|
|
</a>
|
2023-03-10 18:18:20 +03:00
|
|
|
{{end}}
|
|
|
|
{{if and .IsPackageEnabled .CanReadPackages}}
|
2022-03-30 11:42:47 +03:00
|
|
|
<a class="item" href="{{$.Org.HomeLink}}/-/packages">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{svg "octicon-package"}} {{.locale.Tr "packages.title"}}
|
2022-03-30 11:42:47 +03:00
|
|
|
</a>
|
2022-03-31 20:31:53 +03:00
|
|
|
{{end}}
|
2023-03-10 18:18:20 +03:00
|
|
|
{{if and .IsRepoIndexerEnabled .CanReadCode}}
|
|
|
|
<a class="item" href="{{$.Org.HomeLink}}/-/code">
|
2022-10-11 02:12:03 +03:00
|
|
|
{{svg "octicon-code"}} {{$.locale.Tr "org.code"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2021-11-24 19:12:54 +03:00
|
|
|
{{if .IsOrganizationMember}}
|
2022-10-11 02:12:03 +03:00
|
|
|
<a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members">
|
2023-02-18 16:41:31 +03:00
|
|
|
{{svg "octicon-person"}} {{$.locale.Tr "org.members"}}
|
2021-11-24 19:12:54 +03:00
|
|
|
{{if .NumMembers}}
|
2023-04-19 21:58:36 +03:00
|
|
|
<div class="ui small label">{{.NumMembers}}</div>
|
2021-11-24 19:12:54 +03:00
|
|
|
{{end}}
|
|
|
|
</a>
|
2022-10-11 02:12:03 +03:00
|
|
|
<a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{svg "octicon-people"}} {{$.locale.Tr "org.teams"}}
|
2021-11-24 19:12:54 +03:00
|
|
|
{{if .NumTeams}}
|
2023-04-19 21:58:36 +03:00
|
|
|
<div class="ui small label">{{.NumTeams}}</div>
|
2021-11-24 19:12:54 +03:00
|
|
|
{{end}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .IsOrganizationOwner}}
|
|
|
|
<div class="right menu">
|
2022-10-11 02:12:03 +03:00
|
|
|
<a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}}
|
2021-11-24 19:12:54 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|