diff options
Diffstat (limited to 'hosts/denpa/cgit')
| -rw-r--r-- | hosts/denpa/cgit/readme_in_summary_no_about.diff (renamed from hosts/denpa/cgit/readme_in_summary.diff) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/hosts/denpa/cgit/readme_in_summary.diff b/hosts/denpa/cgit/readme_in_summary_no_about.diff index 33756f9..73267e0 100644 --- a/hosts/denpa/cgit/readme_in_summary.diff +++ b/hosts/denpa/cgit/readme_in_summary_no_about.diff @@ -12,10 +12,10 @@ index 0eb75b1..be316f4 100644 else if (ctx.repo->homepage) cgit_redirect(ctx.repo->homepage, false); diff --git a/ui-shared.c b/ui-shared.c -index baea6f2..6b01d08 100644 +index 6fae72d..c5b609a 100644 --- a/ui-shared.c +++ b/ui-shared.c -@@ -1078,7 +1078,7 @@ void cgit_print_pageheader(void) +@@ -1082,7 +1082,7 @@ void cgit_print_pageheader(void) html("<table class='tabs'><tr><td>\n"); if (ctx.env.authenticated && ctx.repo) { @@ -25,7 +25,7 @@ index baea6f2..6b01d08 100644 hc("about"), ctx.qry.head, NULL, NULL); diff --git a/ui-summary.c b/ui-summary.c -index 947812a..faf943e 100644 +index 947812a..23c07aa 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -40,31 +40,6 @@ static void print_url(const char *url) @@ -97,7 +97,7 @@ index 947812a..faf943e 100644 } /* Print the calculated readme, either from the git repo or from the -@@ -142,6 +103,52 @@ void cgit_print_repo_readme(const char *path) +@@ -142,6 +103,54 @@ void cgit_print_repo_readme(const char *path) html("</div>"); if (free_filename) free(filename); @@ -132,7 +132,9 @@ index 947812a..faf943e 100644 + +void cgit_print_repo_readme(const char *path) +{ -+ char *mimetype = get_mimetype_for_filename(path); ++ char *mimetype; ++ ++ mimetype = get_mimetype_for_filename(path); + if (mimetype && (!strncmp(mimetype, "image/", 6) || !strncmp(mimetype, "video/", 6))) { + ctx.page.mimetype = mimetype; + ctx.page.charset = NULL; |