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