summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGogs <gogitservice@gmail.com>2014-03-19 23:23:30 +0800
committerGogs <gogitservice@gmail.com>2014-03-19 23:23:30 +0800
commitc6e12d256833095d76bbb5755261507ecbdaada9 (patch)
treea9520d6632ee5365e9c5a6e63d86be03478dd08b /templates
parenta22c4ba71d4d61f40ba93230810bb612b2a50b6f (diff)
downloadgitea-c6e12d256833095d76bbb5755261507ecbdaada9.tar.gz
gitea-c6e12d256833095d76bbb5755261507ecbdaada9.zip
add up url in file list
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index f167444635..e18f79c293 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -57,6 +57,14 @@
</tr>
</thead>
<tbody>
+ {{if .HasParentPath}}
+ <tr class="has-parent">
+ <td class="icon"><a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}{{.ParentPath}}"><i class="fa fa-reply"></i></a></td>
+ <td class="name"><a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}{{.ParentPath}}">..</a></td>
+ <td class="text"></td>
+ <td class="date"></td>
+ </tr>
+ {{end}}
{{range .Files}}
<tr
{{if .IsDir}}class="is-dir"{{end}}>