summaryrefslogtreecommitdiffabout
path: root/ui-summary.c
Side-by-side diff
Diffstat (limited to 'ui-summary.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-summary.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui-summary.c b/ui-summary.c
index cc918ad..29baa74 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -29,2 +29,7 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1,
html_txt(buf);
+ html("</td><td><a href='");
+ html_attr(cgit_pageurl(cgit_query_repo, "tree",
+ fmt("id=%s",
+ sha1_to_hex(commit->tree->object.sha1))));
+ html("'>tree</a>");
html("</td></tr>\n");
@@ -43,3 +48,3 @@ static void cgit_print_branches()
html("<table class='list'>");
- html("<tr><th>Branch name</th><th>Head commit</th></tr>\n");
+ html("<tr><th>Branch name</th><th>Latest</th><th>Link</th></tr>\n");
for_each_branch_ref(cgit_print_branch_cb, NULL);