diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-18 20:33:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 23:57:56 +0100 |
commit | e68b9d00a6e05b3a941f63ffb696f91e554ac5ec (patch) | |
tree | 97775d6c13b0f416af55314eb6a89ef792474615 /templates/org/menu.tmpl | |
parent | Initial commit. (diff) | |
download | forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.tar.xz forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.zip |
Adding upstream version 9.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/org/menu.tmpl')
-rw-r--r-- | templates/org/menu.tmpl | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl new file mode 100644 index 0000000..9ac3a61 --- /dev/null +++ b/templates/org/menu.tmpl @@ -0,0 +1,57 @@ +<div class="ui container"> + <overflow-menu class="ui secondary pointing tabular borderless menu tw-mb-4"> + <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}} + <span hidden test-name="repository-count">{{.RepoCount}}</span> + </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}} + <span hidden test-name="project-count">{{.ProjectCount}}</span> + </a> + {{end}} + {{if and .IsPackageEnabled .CanReadPackages}} + <a class="{{if .IsPackagesPage}}active {{end}}item" href="{{$.Org.HomeLink}}/-/packages"> + {{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}} + {{if .PackageCount}} + <div class="ui small label">{{.PackageCount}}</div> + {{end}} + <span hidden test-name="package-count">{{.PackageCount}}</span> + </a> + {{end}} + {{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}} + <a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members"> + {{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}} + <div class="ui small label">{{.NumMembers}}</div> + </a> + {{end}} + <span hidden test-name="member-count">{{.NumMembers}}</span> + {{if .IsOrganizationMember}} + <a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams"> + {{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}} + {{if .NumTeams}} + <div class="ui small label">{{.NumTeams}}</div> + {{end}} + </a> + {{end}} + <span hidden test-name="team-count">{{.NumTeams}}</span> + {{if .IsOrganizationOwner}} + <a id="settings-btn" class="{{if .PageIsOrgSettings}}active {{end}}right item" href="{{.OrgLink}}/settings"> + {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + </a> + {{end}} + </div> + </overflow-menu> +</div> |