2023-07-06 18:59:24 +00:00
|
|
|
<div class="ui container">
|
2024-03-27 12:48:09 +00:00
|
|
|
<overflow-menu class="ui secondary pointing tabular borderless menu tw-mb-4">
|
2024-03-15 02:05:31 +00:00
|
|
|
<div class="overflow-menu-items">
|
|
|
|
<a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}">
|
|
|
|
{{svg "octicon-repo"}} {{ctx.Locale.Tr "user.repositories"}}
|
|
|
|
{{if .RepoCount}}
|
|
|
|
<div class="ui small label">{{.RepoCount}}</div>
|
|
|
|
{{end}}
|
2024-05-02 15:51:27 +00:00
|
|
|
<span hidden test-name="repository-count">{{.RepoCount}}</span>
|
2024-03-15 02:05:31 +00:00
|
|
|
</a>
|
|
|
|
{{if .CanReadProjects}}
|
|
|
|
<a class="{{if .PageIsViewProjects}}active {{end}}item" href="{{$.Org.HomeLink}}/-/projects">
|
|
|
|
{{svg "octicon-project-symlink"}} {{ctx.Locale.Tr "user.projects"}}
|
|
|
|
{{if .ProjectCount}}
|
|
|
|
<div class="ui small label">{{.ProjectCount}}</div>
|
|
|
|
{{end}}
|
2024-05-02 15:51:27 +00:00
|
|
|
<span hidden test-name="project-count">{{.ProjectCount}}</span>
|
2024-03-15 02:05:31 +00:00
|
|
|
</a>
|
2023-04-19 18:58:36 +00:00
|
|
|
{{end}}
|
2024-03-15 02:05:31 +00:00
|
|
|
{{if and .IsPackageEnabled .CanReadPackages}}
|
|
|
|
<a class="{{if .IsPackagesPage}}active {{end}}item" href="{{$.Org.HomeLink}}/-/packages">
|
|
|
|
{{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}}
|
2024-07-31 10:40:24 +00:00
|
|
|
{{if .PackageCount}}
|
|
|
|
<div class="ui small label">{{.PackageCount}}</div>
|
|
|
|
{{end}}
|
|
|
|
<span hidden test-name="package-count">{{.PackageCount}}</span>
|
2024-03-15 02:05:31 +00:00
|
|
|
</a>
|
2023-11-18 03:02:42 +00:00
|
|
|
{{end}}
|
2024-03-15 02:05:31 +00:00
|
|
|
{{if and .IsRepoIndexerEnabled .CanReadCode}}
|
|
|
|
<a class="{{if .IsCodePage}}active {{end}}item" href="{{$.Org.HomeLink}}/-/code">
|
|
|
|
{{svg "octicon-code"}} {{ctx.Locale.Tr "org.code"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{if .NumMembers}}
|
2022-10-10 23:12:03 +00:00
|
|
|
<a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members">
|
2024-02-23 00:24:57 +00:00
|
|
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}}
|
2023-08-15 14:00:35 +00:00
|
|
|
<div class="ui small label">{{.NumMembers}}</div>
|
2021-11-24 16:12:54 +00:00
|
|
|
</a>
|
2024-03-15 02:05:31 +00:00
|
|
|
{{end}}
|
2024-05-02 15:51:27 +00:00
|
|
|
<span hidden test-name="member-count">{{.NumMembers}}</span>
|
2024-03-15 02:05:31 +00:00
|
|
|
{{if .IsOrganizationMember}}
|
2022-10-10 23:12:03 +00:00
|
|
|
<a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams">
|
2024-02-23 00:24:57 +00:00
|
|
|
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
|
2021-11-24 16:12:54 +00:00
|
|
|
{{if .NumTeams}}
|
2023-04-19 18:58:36 +00:00
|
|
|
<div class="ui small label">{{.NumTeams}}</div>
|
2021-11-24 16:12:54 +00:00
|
|
|
{{end}}
|
|
|
|
</a>
|
2024-03-15 02:05:31 +00:00
|
|
|
{{end}}
|
2024-05-02 15:51:27 +00:00
|
|
|
<span hidden test-name="team-count">{{.NumTeams}}</span>
|
2024-03-15 02:05:31 +00:00
|
|
|
{{if .IsOrganizationOwner}}
|
2024-04-25 20:19:24 +00:00
|
|
|
<a id="settings-btn" class="{{if .PageIsOrgSettings}}active {{end}}right item" href="{{.OrgLink}}/settings">
|
2024-03-15 02:05:31 +00:00
|
|
|
{{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</overflow-menu>
|
2021-11-24 16:12:54 +00:00
|
|
|
</div>
|