diff options
| 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 | 
| commit | e9a7042b5b44c6af2c7dc91eabed732d92278218 (patch) | |
| tree | ca0de7f4de19156b144ada5e9f3a2b46101fee90 | |
| parent | Make branches, tags and log play better together in the summary view (diff) | |
| download | cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar.gz cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.tar.bz2 cgit-e9a7042b5b44c6af2c7dc91eabed732d92278218.zip | |
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 '')
| -rw-r--r-- | ui-log.c | 5 | ||||
| -rw-r--r-- | ui-repolist.c | 2 | 
2 files changed, 7 insertions, 0 deletions
| @@ -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)); diff --git a/ui-repolist.c b/ui-repolist.c index 7a7e95a..98009c0 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -114,7 +114,9 @@ void cgit_print_repolist()  		html_txt(ctx.repo->name);  		html_link_close();  		html("</td><td>"); +		html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);  		html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); +		html_link_close();  		html("</td><td>");  		html_txt(ctx.repo->owner);  		html("</td><td>"); | 
