aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/single.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/single.tmpl')
-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}}>