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-shared.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-shared.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/ui-shared.c b/ui-shared.c index 37c60b2..4818e70 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -258,6 +258,12 @@ void cgit_tree_link(char *name, char *title, char *class, char *head,  	reporevlink("tree", name, title, class, head, rev, path);  } +void cgit_plain_link(char *name, char *title, char *class, char *head, +		     char *rev, char *path) +{ +	reporevlink("plain", name, title, class, head, rev, path); +} +  void cgit_log_link(char *name, char *title, char *class, char *head,  		   char *rev, char *path, int ofs, char *grep, char *pattern)  { @@ -433,6 +439,8 @@ void cgit_print_http_headers(struct cgit_context *ctx)  		      ctx->page.charset);  	else if (ctx->page.mimetype)  		htmlf("Content-Type: %s\n", ctx->page.mimetype); +	if (ctx->page.size) +		htmlf("Content-Length: %ld\n", ctx->page.size);  	if (ctx->page.filename)  		htmlf("Content-Disposition: inline; filename=\"%s\"\n",  		      ctx->page.filename); | 
