remove unnecessary explore org template (#26459)

This commit is contained in:
Denys Konovalov 2023-08-11 22:07:04 +02:00 committed by GitHub
parent 73f6535406
commit 46660f1614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View file

@ -6,17 +6,11 @@ package explore
import ( import (
"code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/db"
user_model "code.gitea.io/gitea/models/user" user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/structs"
) )
const (
// tplExploreOrganizations explore organizations page template
tplExploreOrganizations base.TplName = "explore/organizations"
)
// Organizations render explore organizations page // Organizations render explore organizations page
func Organizations(ctx *context.Context) { func Organizations(ctx *context.Context) {
ctx.Data["UsersIsDisabled"] = setting.Service.Explore.DisableUsersPage ctx.Data["UsersIsDisabled"] = setting.Service.Explore.DisableUsersPage
@ -39,5 +33,5 @@ func Organizations(ctx *context.Context) {
Type: user_model.UserTypeOrganization, Type: user_model.UserTypeOrganization,
ListOptions: db.ListOptions{PageSize: setting.UI.ExplorePagingNum}, ListOptions: db.ListOptions{PageSize: setting.UI.ExplorePagingNum},
Visible: visibleTypes, Visible: visibleTypes,
}, tplExploreOrganizations) }, tplExploreUsers)
} }

View file

@ -1 +0,0 @@
{{template "explore/users" .}}