forked from kevadesu/forgejo
Disable unnecessary mirroring elements
This mod fixes disabling unnecessary mirroring elements. Related: https://github.com/go-gitea/gitea/pull/16957 Related: https://github.com/go-gitea/gitea/pull/13084 Author-Change-Id: IB#1105104
This commit is contained in:
parent
b7c6457648
commit
02b4505150
7 changed files with 11 additions and 12 deletions
|
@ -77,6 +77,7 @@ func Dashboard(ctx *context.Context) {
|
|||
ctx.Data["PageIsNews"] = true
|
||||
cnt, _ := models.GetOrganizationCount(db.DefaultContext, ctxUser)
|
||||
ctx.Data["UserOrgsCount"] = cnt
|
||||
ctx.Data["DisableNewPullMirrors"] = setting.Mirror.DisableNewPull
|
||||
|
||||
var uid int64
|
||||
if ctxUser != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue