summaryrefslogtreecommitdiff
path: root/hosts/denpa/cgit
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-06-03 10:30:38 -0400
committerAndrew Opalach <andrew@akon.city> 2025-06-03 10:30:38 -0400
commit68f39eb867c851acb651f79604aba119ecaa9527 (patch)
tree856a3de46de8196736a8fd4c59395d7192aa8353 /hosts/denpa/cgit
parenta28487fe6fbac72c7b1a752acab42dcc6ab46476 (diff)
downloaddotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.gz
dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.bz2
dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.zip
Add some gentoo stuff and update cgit
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;