summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-07-25 19:41:05 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-07-25 19:41:05 +0200
commitf22980b57cd3388c1fb3540826c69e24869038bf (patch)
tree888422b3dd1e2bbe4fb507971553c342251f8765 /templates
parent6bb4ef8484cdfb2c1635f2e7a616b767557185d2 (diff)
Fix template markup and link ref
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/partials/tree.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/partials/tree.template b/templates/partials/tree.template
index 97536ad..c82dfc0 100644
--- a/templates/partials/tree.template
+++ b/templates/partials/tree.template
@@ -5,8 +5,8 @@
<li class="list-item list-item-tree">
{{#if elem.is_tree}} <div class="list-item-tree-dir"> {{/if}}
{{#if elem.is_blob}} <div class="list-item-tree-file"> {{/if}}
- <a href="{{@root/this.data.name}}/t/{{elem.name}}">{{elem.name}}</a>
- <a href="{{@root/this.data.name}}/blob/{{elem.id}}"><small>{{elem.id}}</small></a>
+ <a href="/{{@root/this.data.name}}/b/{{@root/this.data.branch_name}}/t/{{elem.name}}">{{elem.name}}</a>
+ <a href="/{{@root/this.data.name}}/blob/{{elem.id}}"><small>{{elem.id}}</small></a>
</div>
</li>
{{/each}}