diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 00:19:56 +0100 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 00:19:56 +0100 | 
| commit | 9a8f88658d51aeb86a79ac1121de13562ad2601f (patch) | |
| tree | 8724d9477efe887e0b851b567e74554e75761cc7 /ui-log.c | |
| parent | Add a common commit parser (diff) | |
| download | cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.tar.gz cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.tar.bz2 cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.zip | |
Add ui-commit.c + misc ui cleanups
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | ui-log.c | 11 | 
1 files changed, 3 insertions, 8 deletions
| @@ -21,17 +21,12 @@ void print_commit(struct commit *commit)  	html_txt(buf);  	html("</td><td>");  	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("</td><td>");  	html_txt(info->author); -	html("</td><td><a href='"); -	html_attr(cgit_pageurl(cgit_query_repo, "tree",  -			       fmt("id=%s",  -				   sha1_to_hex(commit->tree->object.sha1)))); -	html("'>tree</a>");  	html("</td></tr>\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("<h2>Log</h2>"); -	html("<table class='list'>"); -	html("<tr><th>Date</th><th>Message</th><th>Author</th><th>Link</th></tr>\n"); +	html("<table class='list log'>"); +	html("<tr><th class='left'>Date</th><th class='left'>Message</th><th class='left'>Author</th></tr>\n");  	if (ofs<0)  		ofs = 0; | 
