summaryrefslogtreecommitdiffstats
path: root/gitsrht/templates/refs.html
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-18 02:14:20 +0100
committerDrew DeVault <sir@cmpwn.com>2019-01-17 20:54:09 -0500
commit3dd257c7f966237329b9071be5581a44269209b5 (patch)
tree52166aef5f98af03cd973c535cf131163f8fb933 /gitsrht/templates/refs.html
parentf2bed6fbf8d7db7b01a0eb3ac7e8c141d54f5128 (diff)
Add log link to branches on refs page
Currently, the branches listed on the refs page only link to the tree and the last commit. This patch adds a link to the log as it is otherwise impossible to reach it without editing the URL.
Diffstat (limited to 'gitsrht/templates/refs.html')
-rw-r--r--gitsrht/templates/refs.html28
1 files changed, 20 insertions, 8 deletions
diff --git a/gitsrht/templates/refs.html b/gitsrht/templates/refs.html
index bc3070e..1a2a793 100644
--- a/gitsrht/templates/refs.html
+++ b/gitsrht/templates/refs.html
@@ -79,14 +79,26 @@
<div class="event">
{{name}}
{{ utils.commit_event(repo, commit, skip_body=True) }}
- <a
- href="{{url_for("repo.tree",
- owner=repo.owner.canonical_name,
- repo=repo.name, ref=name)}}"
- class="btn btn-block {{ "btn-primary"
- if branch.name == git_repo.default_branch().name
- else "btn-default" }}"
- >browse {{icon("caret-right")}}</a>
+ <div class="row">
+ <div class="col">
+ <a
+ href="{{url_for("repo.tree",
+ owner=repo.owner.canonical_name,
+ repo=repo.name, ref=name)}}"
+ class="btn btn-block {{ "btn-primary"
+ if branch.name == git_repo.default_branch().name
+ else "btn-default" }}"
+ >browse {{icon("caret-right")}}</a>
+ </div>
+ <div class="col">
+ <a
+ href="{{url_for("repo.log",
+ owner=repo.owner.canonical_name,
+ repo=repo.name, ref=name)}}"
+ class="btn btn-block btn-default"
+ >log {{icon("caret-right")}}</a>
+ </div>
+ </div>
</div>
{% endfor %}
</div>