summaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-30 02:08:38 -0700
committerUnknwon <u@gogs.io>2016-08-30 02:08:38 -0700
commit780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2 (patch)
tree1657d9fecdcf70d4e0067724344f531d608efb71 /templates/repo/home.tmpl
parent2a13f682e0fa039a610e7817495d87685f9632f2 (diff)
downloadgitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.tar.gz
gitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.zip
router/repo: code refactoring
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 7ef75277e6..2b8c7e06e0 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -19,9 +19,9 @@
<div class="fitted item">
<div class="ui breadcrumb">
<a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{.Repository.Name}}</a>
- {{ $n := len .Treenames}}
+ {{ $n := len .TreeNames}}
{{ $l := Subtract $n 1}}
- {{range $i, $v := .Treenames}}
+ {{range $i, $v := .TreeNames}}
<div class="divider"> / </div>
{{if eq $i $l}}
<span class="active section">{{$v}}</span>
@@ -74,7 +74,7 @@
{{end}}
</div>
</div>
- {{if .IsFile}}
+ {{if .IsViewFile}}
{{template "repo/view_file" .}}
{{else}}
{{template "repo/view_list" .}}