summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 21:28:12 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 21:28:12 +0800
commit42b08ff26158b9c815d13a427c596bd76468beb8 (patch)
tree95d7474410596475f94c4744a955b381d126554c /modules
parent47234f1031b35dfc6b3a20223d5dd61db2decda1 (diff)
downloadgitea-42b08ff26158b9c815d13a427c596bd76468beb8.tar.gz
gitea-42b08ff26158b9c815d13a427c596bd76468beb8.zip
fix single bare page link
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 62c67bcee1..a9a90e3ff5 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -79,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
}
}