diff options
author | Andrew <boyarshinand@gmail.com> | 2016-08-12 00:18:51 +0700 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-11 10:18:51 -0700 |
commit | 0885784f136b9b68653ec33fa733e962f3507f7e (patch) | |
tree | 485512cf16333b9ae28cba83b8f3091392f94bc3 /modules/context | |
parent | 3380c946e12e53368f28a2b7285c7bad0c1746dc (diff) | |
download | gitea-0885784f136b9b68653ec33fa733e962f3507f7e.tar.gz gitea-0885784f136b9b68653ec33fa733e962f3507f7e.zip |
Wiki mirroring implementation (#3233)
* Implement wiki mirroring, add Update mirrors operation to admin dashboard
* bindata.go update after merge
* Implement checking Git repo endpoint existence, support for BB included
* Remove admin dashboard operation
Fix bindata.go
* Apply gofmt to repo model file
* Try to remove bindata from PR
* Revert accepted wiki names change in favor of better system
* Remove unused imports
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index af18881486..ea3b445e31 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -223,6 +223,7 @@ func RepoAssignment(args ...bool) macaron.Handler { ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner() ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin() ctx.Data["IsRepositoryWriter"] = ctx.Repo.IsWriter() + ctx.Data["IsRepositoryMirror"] = repo.IsMirror ctx.Data["DisableSSH"] = setting.SSH.Disabled ctx.Data["CloneLink"] = repo.CloneLink() |