summaryrefslogtreecommitdiffstats
path: root/templates/repo/single.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-14 23:57:14 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-14 23:57:14 +0800
commitd80f43ca816465ca112684e02d18f3184af7ff26 (patch)
treee6d41092a323faa2f5d803f08795da434d1ed761 /templates/repo/single.tmpl
parentb27e8e87f8be2d11468e9057254b6c8933e0af33 (diff)
downloadgitea-d80f43ca816465ca112684e02d18f3184af7ff26.tar.gz
gitea-d80f43ca816465ca112684e02d18f3184af7ff26.zip
bug fixed
Diffstat (limited to 'templates/repo/single.tmpl')
-rw-r--r--templates/repo/single.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index 292f8cbddd..f71e87f0fb 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -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}}