diff options
author | Unknwon <u@gogs.io> | 2016-08-30 02:08:38 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-30 02:08:38 -0700 |
commit | 780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2 (patch) | |
tree | 1657d9fecdcf70d4e0067724344f531d608efb71 /templates/repo/home.tmpl | |
parent | 2a13f682e0fa039a610e7817495d87685f9632f2 (diff) | |
download | gitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.tar.gz gitea-780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2.zip |
router/repo: code refactoring
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 6 |
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" .}} |