Bläddra i källkod

remove unnecessary explore org template (#26459)

tags/v1.21.0-rc0
Denys Konovalov 9 månader sedan
förälder
incheckning
46660f1614
Inget konto är kopplat till bidragsgivarens mejladress
2 ändrade filer med 1 tillägg och 8 borttagningar
  1. 1
    7
      routers/web/explore/org.go
  2. 0
    1
      templates/explore/organizations.tmpl

+ 1
- 7
routers/web/explore/org.go Visa fil

@@ -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)
}

+ 0
- 1
templates/explore/organizations.tmpl Visa fil

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

Laddar…
Avbryt
Spara