diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-09 17:25:02 -0700 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-09 17:25:02 -0700 |
commit | 78defd238c939ff577041f2e7b95b2ae48a9fb27 (patch) | |
tree | 5dd168d880ece655796558874f352b2c2263e965 /modules | |
parent | 08c6d07aad65f45efd5bf9f50d9cda68f59c0e69 (diff) | |
download | gitea-78defd238c939ff577041f2e7b95b2ae48a9fb27.tar.gz gitea-78defd238c939ff577041f2e7b95b2ae48a9fb27.zip |
Page: Manage social accounts
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/repo.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 16bd7defb8..e1c5c68c75 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -253,7 +253,10 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { } if ctx.IsSigned { - ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id) + ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.Id) + } + if ctx.Repo.Repository.IsBare { + return } ctx.Data["TagName"] = ctx.Repo.TagName @@ -276,7 +279,6 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { ctx.Data["BranchName"] = ctx.Repo.BranchName ctx.Data["CommitId"] = ctx.Repo.CommitId - ctx.Data["IsWatchingRepo"] = ctx.Repo.IsWatching } } |