summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-30 17:09:19 +0800
committerslene <vslene@gmail.com>2014-03-30 17:09:19 +0800
commitb1627672f9b45047976f498fe618995361e9ff35 (patch)
treef3e60f3608a4a95a15b1507aef108d6daffb5965 /modules
parent4c70249f75a8fd2a7962c9c6c0d6fec13e7f2192 (diff)
downloadgitea-b1627672f9b45047976f498fe618995361e9ff35.tar.gz
gitea-b1627672f9b45047976f498fe618995361e9ff35.zip
fix link
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 559e90c0cf..6912cd8380 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -140,6 +140,9 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
branchName = "master"
goto detect
}
+
+ ctx.Data["IsBranch"] = ctx.Repo.IsBranch
+ ctx.Data["IsCommit"] = ctx.Repo.IsCommit
}
// repo is bare and display enable