diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-07 16:44:25 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-07 16:44:25 -0500 |
commit | 35977cd34cd635bca7f07ed2eb1fba0df9944e1d (patch) | |
tree | f12c39c762ce686e47eae6bf7282d08e12b1e10f /templates/repo/home.tmpl | |
parent | abc57b6e439c5ab9c3b6ed2cedeb10d50f5ae619 (diff) | |
download | gitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.tar.gz gitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.zip |
continue work on #255
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 4928033fc2..acfdc38bd6 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -31,26 +31,26 @@ </ul> <ul class="menu menu-vertical switching-list {{if .IsTag}}hide{{end}}" id="repo-branch-list"> {{range .Branches}} - <li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{.}}"><i class="octicon octicon-check"></i>{{.}}</a></li> + <li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{EscapePound .}}"><i class="octicon octicon-check"></i>{{.}}</a></li> {{end}} </ul> <ul class="menu menu-vertical switching-list {{if not .IsTag}}hide{{end}}" id="repo-tag-list"> {{range .Tags}} - <li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{.}}"><i class="octicon octicon-check"></i>{{.}}</a></li> + <li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{EscapePound .}}"><i class="octicon octicon-check"></i>{{.}}</a></li> {{end}} </ul> </div> </div> </li> <li id="repo-bread" class="breads"> - <a class="title bread" href="{{.RepoLink}}">{{.Repository.Name}}</a> + <a class="title bread" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{.Repository.Name}}</a> {{ $n := len .Treenames}} {{ $l := Subtract $n 1}} {{range $i, $v := .Treenames}} {{if eq $i $l}} - <span class="bread">{{$v}}</span> + <span class="bread">{{EscapePound $v}}</span> {{else}} - <span class="bread"><a href="{{$.BranchLink}}/{{index $.Paths $i}}">{{$v}}</a></span> + <span class="bread"><a href="{{EscapePound $.BranchLink}}/{{index $.Paths $i}}">{{$v}}</a></span> {{end}} {{end}} </li> |