From e9a7042b5b44c6af2c7dc91eabed732d92278218 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 14 Apr 2008 22:23:48 +0200 Subject: Make a few more columns in repolist and log view clickable Less mouse movement is nice. Signed-off-by: Lars Hjemli --- ui-log.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index 9b2ffb6..746f40b 100644 --- a/ui-log.c +++ b/ui-log.c @@ -34,10 +34,15 @@ void inspect_files(struct diff_filepair *pair) void print_commit(struct commit *commit) { struct commitinfo *info; + char *tmp; info = cgit_parse_commit(commit); html(""); + tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); + tmp = cgit_pageurl(ctx.repo->url, "commit", tmp); + html_link_open(tmp, NULL, NULL); cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); + html_link_close(); html(""); cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, sha1_to_hex(commit->object.sha1)); -- cgit v1.2.1