Skip to content

Commit 46660f1

Browse files
authored
remove unnecessary explore org template (#26459)
1 parent 73f6535 commit 46660f1

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

routers/web/explore/org.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@ package explore
66
import (
77
"code.gitea.io/gitea/models/db"
88
user_model "code.gitea.io/gitea/models/user"
9-
"code.gitea.io/gitea/modules/base"
109
"code.gitea.io/gitea/modules/context"
1110
"code.gitea.io/gitea/modules/setting"
1211
"code.gitea.io/gitea/modules/structs"
1312
)
1413

15-
const (
16-
// tplExploreOrganizations explore organizations page template
17-
tplExploreOrganizations base.TplName = "explore/organizations"
18-
)
19-
2014
// Organizations render explore organizations page
2115
func Organizations(ctx *context.Context) {
2216
ctx.Data["UsersIsDisabled"] = setting.Service.Explore.DisableUsersPage
@@ -39,5 +33,5 @@ func Organizations(ctx *context.Context) {
3933
Type: user_model.UserTypeOrganization,
4034
ListOptions: db.ListOptions{PageSize: setting.UI.ExplorePagingNum},
4135
Visible: visibleTypes,
42-
}, tplExploreOrganizations)
36+
}, tplExploreUsers)
4337
}

templates/explore/organizations.tmpl

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)