Unidiff1 files changed, 7 insertions, 0 deletions
|
diff --git a/ui-view.c b/ui-view.c index 7d022fd..dbe4b29 100644 --- a/ ui-view.c+++ b/ ui-view.c |
|
@@ -39,8 +39,15 @@ void cgit_print_view(const char *hex, char *path) |
39 | htmlf("%s (", path); |
39 | htmlf("%s (", path); |
40 | htmlf("%s %s, %li bytes", typename(type), hex, size); |
40 | htmlf("%s %s, %li bytes", typename(type), hex, size); |
41 | if (path) |
41 | if (path) |
42 | html(")"); |
42 | html(")"); |
| |
43 | |
| |
44 | html(" <a href='"); |
| |
45 | html_attr(cgit_pageurl(cgit_query_repo, "blob", |
| |
46 | fmt("id=%s&path=%s", |
| |
47 | hex, |
| |
48 | path))); |
| |
49 | html("'>download</a>"); |
43 | html("</th></tr>\n"); |
50 | html("</th></tr>\n"); |
44 | html("<tr><td class='blob'>\n"); |
51 | html("<tr><td class='blob'>\n"); |
45 | html_txt(buf); |
52 | html_txt(buf); |
46 | html("\n</td></tr>\n"); |
53 | html("\n</td></tr>\n"); |
|