forked from kevadesu/forgejo
bug fixed
This commit is contained in:
parent
b27e8e87f8
commit
d80f43ca81
2 changed files with 5 additions and 5 deletions
|
@ -14,15 +14,15 @@
|
|||
<li><a href="//{{.RepositoryLink}}/branch/develop">develop</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ol class="breadcrumb">
|
||||
<li class="root dir">{{.Repository.Name}}</li>
|
||||
{{$paths := .Paths}}
|
||||
{{$paths := .Paths}}
|
||||
{{ $username := .Username}}
|
||||
{{ $reponame := .Reponame}}
|
||||
{{ $branchname := .Branchname}}
|
||||
{{ $treenames := .Treenames}}
|
||||
{{ $n := len $treenames}}
|
||||
{{ $l := Subtract $n 1}}
|
||||
<ol class="breadcrumb">
|
||||
<li class="root dir"><a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}">{{.Repository.Name}}</a></li>
|
||||
{{range $i, $v := $treenames}}
|
||||
<li class="dir">
|
||||
{{if eq $i $l}}{{$v}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue