]> source.dussan.org Git - gitea.git/commitdiff
remove unnecessary explore org template (#26459)
authorDenys Konovalov <kontakt@denyskon.de>
Fri, 11 Aug 2023 20:07:04 +0000 (22:07 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2023 20:07:04 +0000 (16:07 -0400)
routers/web/explore/org.go
templates/explore/organizations.tmpl [deleted file]

index c8b26c35efb2e0c4cd1301581b7bfe76b679535d..e37bce6b40e4f1119635d6b59e433becc6e3272f 100644 (file)
@@ -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)
 }
diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl
deleted file mode 100644 (file)
index ea788b1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{{template "explore/users" .}}