diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2008-09-01 22:40:55 +0200 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2008-09-01 22:40:55 +0200 | 
| commit | d532c4d1612c94347427fa1afda6afb7c34e512a (patch) | |
| tree | 53f3f86ba8e78051bee96cb65a6219ef43d9adab /ui-tree.c | |
| parent | Merge branch 'lh/clone' (diff) | |
| parent | Supply status description to html_status() (diff) | |
| download | cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.tar.gz cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.tar.bz2 cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.zip | |
Merge branch 'lh/plain'
* lh/plain:
  Supply status description to html_status()
  ui-tree: link to plain view instead of blob view
  Implement plain view
Diffstat (limited to '')
| -rw-r--r-- | ui-tree.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -35,10 +35,10 @@ static void print_object(const unsigned char *sha1, char *path)  		return;  	} -	html(" blob: <a href='"); -	html_attr(cgit_pageurl(ctx.qry.repo, "blob", -			       fmt("id=%s&path=%s", sha1_to_hex(sha1), path))); -	htmlf("'>%s</a>",sha1_to_hex(sha1)); +	html(" ("); +	cgit_plain_link("plain", NULL, NULL, ctx.qry.head, +		        curr_rev, path); +	htmlf(")<br/>blob: %s", sha1_to_hex(sha1));  	html("<table summary='blob content' class='blob'>\n");  	idx = 0; | 
