diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-25 00:12:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 00:12:54 +0800 |
commit | 49933c7fb09cc98ae0e57a483d68011ac67fd492 (patch) | |
tree | 8d28bc3463dae5e97a2eec8476d1b659898c4b8d /templates/org/menu.tmpl | |
parent | 71ed96b0d5048b900b7f323d9febb921f641a0bd (diff) | |
download | gitea-49933c7fb09cc98ae0e57a483d68011ac67fd492.tar.gz gitea-49933c7fb09cc98ae0e57a483d68011ac67fd492.zip |
Create menus for organization pages (#17802)
* Create menus for organization pages
* Fix frontend lint
* Fix frontend lint
Diffstat (limited to 'templates/org/menu.tmpl')
-rw-r--r-- | templates/org/menu.tmpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl new file mode 100644 index 0000000000..ec985c03e4 --- /dev/null +++ b/templates/org/menu.tmpl @@ -0,0 +1,29 @@ +<div class="ui tabs container"> + <div class="ui secondary stackable pointing menu"> + <a class="{{if .PageIsViewRepositories}}active{{end}} item" href="{{$.Org.HomeLink}}"> + {{svg "octicon-repo"}} {{.i18n.Tr "user.repositories"}} + </a> + {{if .IsOrganizationMember}} + <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> + {{svg "octicon-organization"}} {{$.i18n.Tr "org.people"}} + {{if .NumMembers}} + <div class="ui primary label">{{.NumMembers}}</div> + {{end}} + </a> + <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> + {{svg "octicon-people"}} {{$.i18n.Tr "org.teams"}} + {{if .NumTeams}} + <div class="ui black label">{{.NumTeams}}</div> + {{end}} + </a> + {{end}} + + {{if .IsOrganizationOwner}} + <div class="right menu"> + <a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.OrgLink}}/settings"> + {{svg "octicon-tools"}} {{.i18n.Tr "repo.settings"}} + </a> + </div> + {{end}} + </div> +</div> |