From 9a8f88658d51aeb86a79ac1121de13562ad2601f Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 16 Dec 2006 00:19:56 +0100 Subject: Add ui-commit.c + misc ui cleanups Signed-off-by: Lars Hjemli --- ui-log.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index 31331ef..c52af79 100644 --- a/ui-log.c +++ b/ui-log.c @@ -21,17 +21,12 @@ void print_commit(struct commit *commit) html_txt(buf); html(""); char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); - char *url = cgit_pageurl(cgit_query_repo, "view", qry); + char *url = cgit_pageurl(cgit_query_repo, "commit", qry); html_link_open(url, NULL, NULL); html_txt(info->subject); html_link_close(); html(""); html_txt(info->author); - html("tree"); html("\n"); free(info->author); free(info->committer); @@ -56,8 +51,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt) prepare_revision_walk(&rev); html("

Log

"); - html(""); - html("\n"); + html("
DateMessageAuthorLink
"); + html("\n"); if (ofs<0) ofs = 0; -- cgit v1.2.1
DateMessageAuthor