From 9d8d9b61238df3a855504825e5f735d00289f12b Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Fri, 22 Dec 2006 00:58:18 +0100 Subject: Only show first 80 characters of commit subject in log and summary Signed-off-by: Lars Hjemli --- ui-summary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui-summary.c') diff --git a/ui-summary.c b/ui-summary.c index 638c8f6..de95053 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -31,7 +31,7 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, url = cgit_pageurl(cgit_query_repo, "commit", fmt("id=%s", sha1_to_hex(sha1))); html_link_open(url, NULL, NULL); - html_txt(info->subject); + html_ntxt(80, info->subject); html_link_close(); html(""); html_txt(info->author); @@ -49,7 +49,7 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1, static void cgit_print_branches() { - html(""); + html("
"); html("" "" "" -- cgit v1.2.1
BranchUpdatedCommit subject