aboutsummaryrefslogtreecommitdiff
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-22 00:50:47 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-22 00:50:47 +0800
commit17da2fd2e30e85909394bc58069ecab14d8d8577 (patch)
treed80e786818d20aed12b7a84f6a9961468a7f70ec /modules/middleware/repo.go
parentefdaf6ee1536f043d9e242dc16a096c99ec1bfda (diff)
parentf219ddcf4ef13b9d5de129da4eb2b56dbc899d61 (diff)
merged
Diffstat (limited to 'modules/middleware/repo.go')
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index b25c9423..a9a90e3f 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -70,6 +70,7 @@ func RepoAssignment(redirect bool) martini.Handler {
}
ctx.Repo.Repository = repo
ctx.Repo.CloneLink.SSH = fmt.Sprintf("git@%s:%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
+ ctx.Repo.CloneLink.HTTPS = fmt.Sprintf("https://%s/%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
ctx.Data["IsRepositoryValid"] = true
ctx.Data["Repository"] = repo
@@ -78,5 +79,6 @@ func RepoAssignment(redirect bool) martini.Handler {
ctx.Data["CloneLink"] = ctx.Repo.CloneLink
ctx.Data["RepositoryLink"] = ctx.Data["Title"]
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner
+ ctx.Data["IsRepositoryWatching"] = ctx.Repo.IsWatching
}
}