summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 8739c139d9..66977e3b5e 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -30,10 +30,10 @@ import (
)
const (
- tplRepoBARE base.TplName = "repo/bare"
- tplRepoHome base.TplName = "repo/home"
- tplWatchers base.TplName = "repo/watchers"
- tplForks base.TplName = "repo/forks"
+ tplRepoEMPTY base.TplName = "repo/empty"
+ tplRepoHome base.TplName = "repo/home"
+ tplWatchers base.TplName = "repo/watchers"
+ tplForks base.TplName = "repo/forks"
)
func renderDirectory(ctx *context.Context, treeLink string) {
@@ -321,8 +321,8 @@ func Home(ctx *context.Context) {
func renderCode(ctx *context.Context) {
ctx.Data["PageIsViewCode"] = true
- if ctx.Repo.Repository.IsBare {
- ctx.HTML(200, tplRepoBARE)
+ if ctx.Repo.Repository.IsEmpty {
+ ctx.HTML(200, tplRepoEMPTY)
return
}