Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-log.c
diff options
context:
space:
mode:
Commite9a7042b5b44c6af2c7dc91eabed732d92278218 (patch)
Author
 Lars Hjemli <hjemli@gmail.com>
2008-04-14 22:23:48 +0200
Committer
 Lars Hjemli <hjemli@gmail.com>
2008-04-14 22:23:48 +0200
Filesca0de7f4de19156b144ada5e9f3a2b46101fee90 /ui-log.c
cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar
cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar.gz
cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.zip
Parent5764fe95469f65fdee285467f0f87d188fc1a780 (diff)
Make a few more columns in repolist and log view clickable
Less mouse movement is nice. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
1 files changed, 5 insertions, 0 deletions
-rw-r--r--ui-log.c5
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("<tr><td>");
+ 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("</td><td>");
cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
sha1_to_hex(commit->object.sha1));