diff --git a/routers/web/org/home.go b/routers/web/org/home.go index 0dc441fe84..52f0282b5c 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.go @@ -142,6 +142,7 @@ func Home(ctx *context.Context) { ctx.Data["Members"] = members ctx.Data["Teams"] = ctx.Org.Teams ctx.Data["DisableNewPullMirrors"] = setting.Mirror.DisableNewPull + ctx.Data["PageIsViewRepositories"] = true pager := context.NewPagination(int(count), setting.UI.User.RepoPagingNum, page, 5) pager.SetDefaultParams(ctx) 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}}
{{$.i18n.Tr "org.settings.visibility.limited_shortname"}}
{{end}} {{if .Visibility.IsPrivate}}
{{$.i18n.Tr "org.settings.visibility.private_shortname"}}
{{end}} -
- -
-
{{end}} + +{{template "org/menu" .}} 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}}
{{.i18n.Tr "org.settings.visibility.limited_shortname"}}
{{end}} {{if .Org.Visibility.IsPrivate}}
{{.i18n.Tr "org.settings.visibility.private_shortname"}}
{{end}} - {{if .IsOrganizationOwner}}{{svg "octicon-gear" 16 "mb-3"}}{{end}} {{if $.RenderedDescription}}

{{$.RenderedDescription|Str2html}}

{{end}}
@@ -19,20 +18,11 @@
-
+ {{template "org/menu" .}}
- {{if .CanCreateOrgRepo}} -
- {{if not .DisableNewPullMirrors}} - {{.i18n.Tr "new_migrate"}} - {{end}} - {{.i18n.Tr "new_repo"}} -
-
- {{end}} {{template "explore/repo_search" .}} {{template "explore/repo_list" .}} {{template "base/paginate" .}} 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 @@ + diff --git a/web_src/less/_organization.less b/web_src/less/_organization.less index d1a003c214..d86938d56a 100644 --- a/web_src/less/_organization.less +++ b/web_src/less/_organization.less @@ -16,6 +16,12 @@ } } + .ui.secondary.stackable.pointing.menu { + flex-wrap: wrap; + margin-top: 5px; + margin-bottom: 10px; + } + &.new.org { #create-page-form();