aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/explore
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2023-08-11 22:07:04 +0200
committerGitHub <noreply@github.com>2023-08-11 16:07:04 -0400
commit46660f1614ca5bab3b8fb606db0a3f7c2d2d2756 (patch)
tree5bb298c85bd779c2911c358743e5daed03ef5cd1 /routers/web/explore
parent73f6535406a973429d4073ae1047567006ca6f31 (diff)
downloadgitea-46660f1614ca5bab3b8fb606db0a3f7c2d2d2756.tar.gz
gitea-46660f1614ca5bab3b8fb606db0a3f7c2d2d2756.zip
remove unnecessary explore org template (#26459)
Diffstat (limited to 'routers/web/explore')
-rw-r--r--routers/web/explore/org.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go
index c8b26c35ef..e37bce6b40 100644
--- a/routers/web/explore/org.go
+++ b/routers/web/explore/org.go
@@ -6,17 +6,11 @@ package explore
import (
"code.gitea.io/gitea/models/db"
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/setting"
"code.gitea.io/gitea/modules/structs"
)
-const (
- // tplExploreOrganizations explore organizations page template
- tplExploreOrganizations base.TplName = "explore/organizations"
-)
-
// Organizations render explore organizations page
func Organizations(ctx *context.Context) {
ctx.Data["UsersIsDisabled"] = setting.Service.Explore.DisableUsersPage
@@ -39,5 +33,5 @@ func Organizations(ctx *context.Context) {
Type: user_model.UserTypeOrganization,
ListOptions: db.ListOptions{PageSize: setting.UI.ExplorePagingNum},
Visible: visibleTypes,
- }, tplExploreOrganizations)
+ }, tplExploreUsers)
}