summaryrefslogtreecommitdiffabout
path: root/ui-log.c
authorLars Hjemli <hjemli@gmail.com>2006-12-21 23:58:18 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2006-12-21 23:58:18 (UTC)
commit9d8d9b61238df3a855504825e5f735d00289f12b (patch) (unidiff)
treeee4e5b6712abb684b920f1f69683eb2b43c6fd8d /ui-log.c
parent378cae639849ba9f020666d1cf6dad6e08bfaf0e (diff)
downloadcgit-9d8d9b61238df3a855504825e5f735d00289f12b.zip
cgit-9d8d9b61238df3a855504825e5f735d00289f12b.tar.gz
cgit-9d8d9b61238df3a855504825e5f735d00289f12b.tar.bz2
Only show first 80 characters of commit subject in log and summary
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-log.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-log.c b/ui-log.c
index def96f6..f3b16e7 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -20,13 +20,13 @@ void print_commit(struct commit *commit)
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_txt(info->subject); 26 html_ntxt(80, 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}
@@ -45,13 +45,13 @@ void cgit_print_log(const char *tip, int ofs, int cnt)
45 rev.verbose_header = 1; 45 rev.verbose_header = 1;
46 rev.show_root_diff = 0; 46 rev.show_root_diff = 0;
47 setup_revisions(2, argv, &rev, NULL); 47 setup_revisions(2, argv, &rev, NULL);
48 prepare_revision_walk(&rev); 48 prepare_revision_walk(&rev);
49 49
50 html("<h2>Log</h2>"); 50 html("<h2>Log</h2>");
51 html("<table class='list log'>"); 51 html("<table class='list nowrap'>");
52 html("<tr><th class='left'>Date</th>" 52 html("<tr><th class='left'>Date</th>"
53 "<th class='left'>Message</th>" 53 "<th class='left'>Message</th>"
54 "<th class='left'>Author</th></tr>\n"); 54 "<th class='left'>Author</th></tr>\n");
55 55
56 if (ofs<0) 56 if (ofs<0)
57 ofs = 0; 57 ofs = 0;