summaryrefslogtreecommitdiffstats
path: root/gitsrht/templates/tree.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-01 15:24:01 -0400
committerDrew DeVault <sir@cmpwn.com>2018-10-01 15:24:01 -0400
commit330fc074373deb7f81c84b1113ac48e61276c7b7 (patch)
treea1d3eaeb80dd86e786e1a9f4323116952927da98 /gitsrht/templates/tree.html
parentc6533c216aa402ad33ca0c9a8534836f8f13034d (diff)
Wire up commit placeholder links throughout
Diffstat (limited to 'gitsrht/templates/tree.html')
-rw-r--r--gitsrht/templates/tree.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/gitsrht/templates/tree.html b/gitsrht/templates/tree.html
index aa8a5c6..dd36016 100644
--- a/gitsrht/templates/tree.html
+++ b/gitsrht/templates/tree.html
@@ -7,7 +7,12 @@
{{ utils.breadcrumb(ref, repo, path, path_join) }}
</span>
<div class="pull-right">
- <a href="#">{{commit.id.hex[:8]}}</a> &mdash;
+ <a
+ href="{{url_for("repo.commit",
+ owner=repo.owner.canonical_name,
+ repo=repo.name,
+ ref=ref)}}"
+ >{{commit.id.hex[:8]}}</a> &mdash;
<a href="#">{{commit.author.name}}</a>:
{{trim_commit(commit.message)}}
<span class="text-muted">
@@ -48,7 +53,12 @@
</div>
<div class="commit">
{% if entry.commit %}
- <a href="#">{{trim_commit(entry.commit.message)}}</a>
+ <a
+ href="{{url_for("repo.commit",
+ owner=repo.owner.canonical_name,
+ repo=repo.name,
+ ref=entry.commit.id.hex)}}"
+ >{{trim_commit(entry.commit.message)}}</a>
{% endif %}
</div>
<div class="date">