diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-01 15:24:01 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-10-01 15:24:01 -0400 |
commit | 330fc074373deb7f81c84b1113ac48e61276c7b7 (patch) | |
tree | a1d3eaeb80dd86e786e1a9f4323116952927da98 /gitsrht/templates/tree.html | |
parent | c6533c216aa402ad33ca0c9a8534836f8f13034d (diff) |
Wire up commit placeholder links throughout
Diffstat (limited to 'gitsrht/templates/tree.html')
-rw-r--r-- | gitsrht/templates/tree.html | 14 |
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> — + <a + href="{{url_for("repo.commit", + owner=repo.owner.canonical_name, + repo=repo.name, + ref=ref)}}" + >{{commit.id.hex[:8]}}</a> — <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"> |