diff options
| -rw-r--r-- | ui-log.c | 5 | ||||
| -rw-r--r-- | ui-repolist.c | 2 |
2 files changed, 7 insertions, 0 deletions
| @@ -34,10 +34,15 @@ void inspect_files(struct diff_filepair *pair) | |||
| 34 | void print_commit(struct commit *commit) | 34 | void print_commit(struct commit *commit) |
| 35 | { | 35 | { |
| 36 | struct commitinfo *info; | 36 | struct commitinfo *info; |
| 37 | char *tmp; | ||
| 37 | 38 | ||
| 38 | info = cgit_parse_commit(commit); | 39 | info = cgit_parse_commit(commit); |
| 39 | html("<tr><td>"); | 40 | html("<tr><td>"); |
| 41 | tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); | ||
| 42 | tmp = cgit_pageurl(ctx.repo->url, "commit", tmp); | ||
| 43 | html_link_open(tmp, NULL, NULL); | ||
| 40 | cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); | 44 | cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); |
| 45 | html_link_close(); | ||
| 41 | html("</td><td>"); | 46 | html("</td><td>"); |
| 42 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, | 47 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, |
| 43 | sha1_to_hex(commit->object.sha1)); | 48 | sha1_to_hex(commit->object.sha1)); |
diff --git a/ui-repolist.c b/ui-repolist.c index 7a7e95a..98009c0 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
| @@ -114,7 +114,9 @@ void cgit_print_repolist() | |||
| 114 | html_txt(ctx.repo->name); | 114 | html_txt(ctx.repo->name); |
| 115 | html_link_close(); | 115 | html_link_close(); |
| 116 | html("</td><td>"); | 116 | html("</td><td>"); |
| 117 | html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); | ||
| 117 | html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); | 118 | html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); |
| 119 | html_link_close(); | ||
| 118 | html("</td><td>"); | 120 | html("</td><td>"); |
| 119 | html_txt(ctx.repo->owner); | 121 | html_txt(ctx.repo->owner); |
| 120 | html("</td><td>"); | 122 | html("</td><td>"); |
