summaryrefslogtreecommitdiffstats
path: root/templates/org/header.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-25 00:12:54 +0800
committerGitHub <noreply@github.com>2021-11-25 00:12:54 +0800
commit49933c7fb09cc98ae0e57a483d68011ac67fd492 (patch)
tree8d28bc3463dae5e97a2eec8476d1b659898c4b8d /templates/org/header.tmpl
parent71ed96b0d5048b900b7f323d9febb921f641a0bd (diff)
downloadgitea-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/header.tmpl')
-rw-r--r--templates/org/header.tmpl15
1 files changed, 2 insertions, 13 deletions
diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl
index d06c54d9ca..4415e0a1f5 100644
--- a/templates/org/header.tmpl
+++ b/templates/org/header.tmpl
@@ -9,21 +9,10 @@
{{if .Visibility.IsLimited}}<div class="ui medium orange horizontal label">{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
{{if .Visibility.IsPrivate}}<div class="ui medium red horizontal label">{{$.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
</span>
- <div class="ui right">
- <div class="ui menu">
- <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members">
- {{svg "octicon-organization"}}&nbsp;{{$.i18n.Tr "org.people"}}
- <div class="floating ui black label">{{.NumMembers}}</div>
- </a>
- <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams">
- {{svg "octicon-people"}}&nbsp;{{$.i18n.Tr "org.teams"}}
- <div class="floating ui black label">{{.NumTeams}}</div>
- </a>
- </div>
- </div>
</div>
</div>
</div>
</div>
- <div class="ui divider"></div>
{{end}}
+
+{{template "org/menu" .}}