summaryrefslogtreecommitdiffstats
path: root/gitsrht/templates/tree.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-22 15:44:34 -0400
committerDrew DeVault <sir@cmpwn.com>2018-09-22 15:44:34 -0400
commit553e0f55947b804632acedcf5c6859a4ad3a0d44 (patch)
treeab292009710e3439490d166d885f7067c504ff39 /gitsrht/templates/tree.html
parentb4f34988f6b0fa770756ab8531590e3a0657d1a3 (diff)
Reduce markdown/highlight cache expiry to 7 days
Diffstat (limited to 'gitsrht/templates/tree.html')
-rw-r--r--gitsrht/templates/tree.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitsrht/templates/tree.html b/gitsrht/templates/tree.html
index 86537d5..e607de2 100644
--- a/gitsrht/templates/tree.html
+++ b/gitsrht/templates/tree.html
@@ -5,11 +5,11 @@
<span style="padding-left: 1rem">
{% if path != [''] %}
<a href="{{url_for("repo.tree",
- owner=repo.owner.canonical_name, repo=repo.name, branch=branch_name)}}"
+ owner=repo.owner.canonical_name, repo=repo.name, ref=ref)}}"
>{{repo.name}}</a>{% endif %}/{% for part in path%}{%
if loop.last %}{{part}}{% else %}<a
href="{{url_for("repo.tree", owner=repo.owner.canonical_name,
- repo=repo.name, branch=branch_name,
+ repo=repo.name, ref=ref,
path=path_join(*path[:loop.index]))}}"
>{{part}}</a>/{%
endif %}{% endfor %}
@@ -33,7 +33,7 @@
<div class="mode"></div>
<div class="name tree">
<a href="{{url_for("repo.tree",
- owner=repo.owner.canonical_name, repo=repo.name, branch=branch_name,
+ owner=repo.owner.canonical_name, repo=repo.name, ref=ref,
path=path_join(*path[:-1]) if path[:-1] else None)}}">..</a>
</div>
<div class="commit"></div>
@@ -48,7 +48,7 @@
</div>
<div class="name {{entry.type}}">
<a href="{{url_for("repo.tree",
- owner=repo.owner.canonical_name, repo=repo.name, branch=branch_name,
+ owner=repo.owner.canonical_name, repo=repo.name, ref=ref,
path=path_join(*(path + [entry.name])))}}"
>
{{entry.name}}{% if entry.type == "tree" %}/{% endif %}