patx/hglab
improve us on tags branches bookmarks list pages
Commit 266aa0b8b4c1 · Harrison Erd · 2026-05-05 03:47 -0400
Comments
No comments yet.
Diff
diff --git a/templates/bookmarks.tpl b/templates/bookmarks.tpl
--- a/templates/bookmarks.tpl
+++ b/templates/bookmarks.tpl
@@ -21,12 +21,11 @@
<div style="margin-bottom:20px;">
<strong><a href="/{{repo['owner_username']}}/{{repo['name']}}/commits/{{bookmark['short_node']}}">{{bookmark["short_node"]}}</a></strong>
<small>rev {{bookmark["rev"]}} · {{bookmark["date"]}}</small>
- <p>{{bookmark["summary"]}}</p>
- <div class="ref-actions">
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', bookmark, True)}}">Browse code</a>
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', bookmark, True)}}">Commits</a>
- <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{bookmark['short_node']}}.zip">Archive</a>
- </div>
+ <p>{{bookmark["summary"]}}
+ <small><a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', bookmark, True)}}">Browse code</a> ·
+ <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', bookmark, True)}}">Commits</a> ·
+ <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{bookmark['short_node']}}.zip">Archive</a></small>
+ </p>
</div>
</li>
% end
diff --git a/templates/branches.tpl b/templates/branches.tpl
--- a/templates/branches.tpl
+++ b/templates/branches.tpl
@@ -21,12 +21,11 @@
<div style="margin-bottom:20px;">
<strong><a href="/{{repo['owner_username']}}/{{repo['name']}}/commits/{{branch['short_node']}}">{{branch["short_node"]}}</a></strong>
<small>rev {{branch["rev"]}} · {{branch["date"]}}{{" · closed" if branch["closed"] else ""}}</small>
- <p>{{branch["summary"]}}</p>
- <div class="ref-actions">
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', branch, True)}}">Browse code</a>
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', branch, True)}}">Commits</a>
- <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{branch['short_node']}}.zip">Archive</a>
- </div>
+ <p>{{branch["summary"]}}
+ <small><a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', branch, True)}}">Browse code</a> ·
+ <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', branch, True)}}">Commits</a> ·
+ <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{branch['short_node']}}.zip">Archive</a></small>
+ </p>
</div>
</li>
% end
diff --git a/templates/tags.tpl b/templates/tags.tpl
--- a/templates/tags.tpl
+++ b/templates/tags.tpl
@@ -21,12 +21,11 @@
<div style="margin-bottom:20px;">
<strong><a href="/{{repo['owner_username']}}/{{repo['name']}}/commits/{{tag['short_node']}}">{{tag["short_node"]}}</a></strong>
<small>rev {{tag["rev"]}} · {{tag["date"]}}{{" · local" if tag["local"] else ""}}</small>
- <p>{{tag["summary"]}}</p>
- <div class="ref-actions">
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', tag, True)}}">Browse code</a>
- <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', tag, True)}}">Commits</a>
- <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{tag['short_node']}}.zip">Archive</a>
- </div>
+ <p>{{tag["summary"]}}
+ <small><a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/src', tag, True)}}">Browse code</a> ·
+ <a href="{{url_with_ref('/' + repo['owner_username'] + '/' + repo['name'] + '/commits', tag, True)}}">Commits</a> ·
+ <a href="/hg/{{repo['owner_username']}}/{{repo['name']}}/archive/{{tag['short_node']}}.zip">Archive</a></small>
+ </p>
</div>
</li>
% end