summaryrefslogtreecommitdiffabout
path: root/ui-log.c
authorLars Hjemli <hjemli@gmail.com>2008-04-14 20:23:48 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-04-14 20:23:48 (UTC)
commite9a7042b5b44c6af2c7dc91eabed732d92278218 (patch) (unidiff)
treeca0de7f4de19156b144ada5e9f3a2b46101fee90 /ui-log.c
parent5764fe95469f65fdee285467f0f87d188fc1a780 (diff)
downloadcgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.zip
cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar.gz
cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar.bz2
Make a few more columns in repolist and log view clickable
Less mouse movement is nice. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-log.c b/ui-log.c
index 9b2ffb6..746f40b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -36,2 +36,3 @@ void print_commit(struct commit *commit)
36 struct commitinfo *info; 36 struct commitinfo *info;
37 char *tmp;
37 38
@@ -39,3 +40,7 @@ void print_commit(struct commit *commit)
39 html("<tr><td>"); 40 html("<tr><td>");
41 tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
42 tmp = cgit_pageurl(ctx.repo->url, "commit", tmp);
43 html_link_open(tmp, NULL, NULL);
40 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); 44 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
45 html_link_close();
41 html("</td><td>"); 46 html("</td><td>");