2023-07-06 14:59:24 -04:00
|
|
|
<div class="ui container">
|
2024-03-27 08:48:09 -04:00
|
|
|
<overflow-menu class="ui secondary pointing tabular borderless menu tw-mb-4">
|
2024-03-14 22:05:31 -04:00
|
|
|
<div class="overflow-menu-items">
|
2024-08-26 22:54:12 -04:00
|
|
|
{{if .HasProfileReadme}}
|
|
|
|
<a class="{{if .PageIsViewOverview}}active {{end}}item" href="{{$.Org.HomeLink}}">
|
|
|
|
{{svg "octicon-info"}} {{ctx.Locale.Tr "user.overview"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
<a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}{{if .HasProfileReadme}}/-/repositories{{end}}">
|
2024-03-14 22:05:31 -04:00
|
|
|
{{svg "octicon-repo"}} {{ctx.Locale.Tr "user.repositories"}}
|
|
|
|
{{if .RepoCount}}
|
|
|
|
<div class="ui small label">{{.RepoCount}}</div>
|
|
|
|
{{end}}
|
|
|
|
</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}}
|
|
|
|
</a>
|
2023-04-19 14:58:36 -04:00
|
|
|
{{end}}
|
2024-03-14 22:05:31 -04:00
|
|
|
{{if and .IsPackageEnabled .CanReadPackages}}
|
|
|
|
<a class="{{if .IsPackagesPage}}active {{end}}item" href="{{$.Org.HomeLink}}/-/packages">
|
|
|
|
{{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}}
|
|
|
|
</a>
|
2023-11-17 22:02:42 -05:00
|
|
|
{{end}}
|
2024-03-14 22:05:31 -04: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 19:12:03 -04:00
|
|
|
<a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members">
|
2024-02-22 19:24:57 -05:00
|
|
|
{{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}}
|
2023-08-15 10:00:35 -04:00
|
|
|
<div class="ui small label">{{.NumMembers}}</div>
|
2021-11-24 11:12:54 -05:00
|
|
|
</a>
|
2024-03-14 22:05:31 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .IsOrganizationMember}}
|
2022-10-10 19:12:03 -04:00
|
|
|
<a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams">
|
2024-02-22 19:24:57 -05:00
|
|
|
{{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}}
|
2021-11-24 11:12:54 -05:00
|
|
|
{{if .NumTeams}}
|
2023-04-19 14:58:36 -04:00
|
|
|
<div class="ui small label">{{.NumTeams}}</div>
|
2021-11-24 11:12:54 -05:00
|
|
|
{{end}}
|
|
|
|
</a>
|
2024-03-14 22:05:31 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .IsOrganizationOwner}}
|
2024-04-30 00:26:13 -04:00
|
|
|
<span class="item-flex-space"></span>
|
2024-03-14 22:05:31 -04:00
|
|
|
<a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings">
|
2024-04-30 00:26:13 -04:00
|
|
|
{{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}}
|
2024-03-14 22:05:31 -04:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</overflow-menu>
|
2021-11-24 11:12:54 -05:00
|
|
|
</div>
|