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/home.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/home.tmpl')
-rw-r--r-- | templates/org/home.tmpl | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index fc79deb139..5b4f6d2c02 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -9,7 +9,6 @@ {{if .Org.Visibility.IsLimited}}<div class="ui large basic horizontal label">{{.i18n.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} {{if .Org.Visibility.IsPrivate}}<div class="ui large basic horizontal label">{{.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} </span> - {{if .IsOrganizationOwner}}<a class="middle text grey" href="{{.OrgLink}}/settings">{{svg "octicon-gear" 16 "mb-3"}}</a>{{end}} </div> {{if $.RenderedDescription}}<p class="render-content markup">{{$.RenderedDescription|Str2html}}</p>{{end}} <div class="text grey meta"> @@ -19,20 +18,11 @@ </div> </div> - <div class="ui divider"></div> + {{template "org/menu" .}} <div class="ui container"> <div class="ui mobile reversed stackable grid"> <div class="ui eleven wide column"> - {{if .CanCreateOrgRepo}} - <div class="text right"> - {{if not .DisableNewPullMirrors}} - <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a> - {{end}} - <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a> - </div> - <div class="ui divider"></div> - {{end}} {{template "explore/repo_search" .}} {{template "explore/repo_list" .}} {{template "base/paginate" .}} |