pkg/web/templates/tree.html 🔗 @@ -5,7 +5,13 @@ {{if ne .Path "."}} <li><a href="/{{.Repo.Name}}/tree/{{.Ref}}">{{.Ref | shortHash}}</a></li> {{range $i, $part := splitPath .Path}} - <li><a href="/{{$.Repo.Name}}/tree/{{$.Ref}}/{{joinPath $i $}}">{{$part}}</a></li> + <li{{if eq $i (dec (len (splitPath $.Path)))}} aria-current="page"{{end}}> + {{if eq $i (dec (len (splitPath $.Path)))}} + {{$part}} + {{else}} + <a href="/{{$.Repo.Name}}/tree/{{$.Ref}}/{{joinPath $i $}}">{{$part}}</a> + {{end}} + </li> {{end}} {{else}} <li>{{.Ref | shortHash}}</li>