|
diff --git a/ui-log.c b/ui-log.c index 725f49b..24d571d 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -14,25 +14,25 @@ void print_commit(struct commit *commit) |
14 | struct commitinfo *info; |
14 | struct commitinfo *info; |
15 | struct tm *time; |
15 | struct tm *time; |
16 | |
16 | |
17 | info = cgit_parse_commit(commit); |
17 | info = cgit_parse_commit(commit); |
18 | time = gmtime(&commit->date); |
18 | time = gmtime(&commit->date); |
19 | html("<tr><td>"); |
19 | html("<tr><td>"); |
20 | strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time); |
20 | strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time); |
21 | html_txt(buf); |
21 | html_txt(buf); |
22 | html("</td><td>"); |
22 | html("</td><td>"); |
23 | char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
23 | char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); |
24 | char *url = cgit_pageurl(cgit_query_repo, "commit", qry); |
24 | char *url = cgit_pageurl(cgit_query_repo, "commit", qry); |
25 | html_link_open(url, NULL, NULL); |
25 | html_link_open(url, NULL, NULL); |
26 | html_ntxt(80, info->subject); |
26 | html_ntxt(cgit_max_msg_len, info->subject); |
27 | html_link_close(); |
27 | html_link_close(); |
28 | html("</td><td>"); |
28 | html("</td><td>"); |
29 | html_txt(info->author); |
29 | html_txt(info->author); |
30 | html("</td></tr>\n"); |
30 | html("</td></tr>\n"); |
31 | cgit_free_commitinfo(info); |
31 | cgit_free_commitinfo(info); |
32 | } |
32 | } |
33 | |
33 | |
34 | |
34 | |
35 | void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) |
35 | void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) |
36 | { |
36 | { |
37 | struct rev_info rev; |
37 | struct rev_info rev; |
38 | struct commit *commit; |
38 | struct commit *commit; |
|