diff options
Diffstat (limited to 'ui-summary.c')
| -rw-r--r-- | ui-summary.c | 7 |
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 | |||
| @@ -27,6 +27,11 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, | |||
| 27 | pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0, buf, | 27 | pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0, buf, |
| 28 | sizeof(buf), 0, NULL, NULL, 0); | 28 | sizeof(buf), 0, NULL, NULL, 0); |
| 29 | html_txt(buf); | 29 | html_txt(buf); |
| 30 | html("</td><td><a href='"); | ||
| 31 | html_attr(cgit_pageurl(cgit_query_repo, "tree", | ||
| 32 | fmt("id=%s", | ||
| 33 | sha1_to_hex(commit->tree->object.sha1)))); | ||
| 34 | html("'>tree</a>"); | ||
| 30 | html("</td></tr>\n"); | 35 | html("</td></tr>\n"); |
| 31 | } else { | 36 | } else { |
| 32 | html("<tr><td>"); | 37 | html("<tr><td>"); |
| @@ -41,7 +46,7 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, | |||
| 41 | static void cgit_print_branches() | 46 | static void cgit_print_branches() |
| 42 | { | 47 | { |
| 43 | html("<table class='list'>"); | 48 | html("<table class='list'>"); |
| 44 | html("<tr><th>Branch name</th><th>Head commit</th></tr>\n"); | 49 | html("<tr><th>Branch name</th><th>Latest</th><th>Link</th></tr>\n"); |
| 45 | for_each_branch_ref(cgit_print_branch_cb, NULL); | 50 | for_each_branch_ref(cgit_print_branch_cb, NULL); |
| 46 | html("</table>"); | 51 | html("</table>"); |
| 47 | } | 52 | } |
