summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-04 22:33:50 +0000
committerJune McEnroe <june@causal.agency>2021-02-04 22:33:50 +0000
commitaef8733583b5d9e6bed312f03ff9923a00d5da25 (patch)
tree4c74fef38a218221050bdca9d2be3d46e107dc05 /www
parentUse owner-filter for repo page headers (diff)
downloadsrc-aef8733583b5d9e6bed312f03ff9923a00d5da25.tar.gz
src-aef8733583b5d9e6bed312f03ff9923a00d5da25.zip
Use owner-filter to add Liberapay donation buttons
Diffstat (limited to 'www')
-rw-r--r--www/git.causal.agency/.gitignore1
-rw-r--r--www/git.causal.agency/Makefile2
-rw-r--r--www/git.causal.agency/cgitrc1
-rw-r--r--www/git.causal.agency/custom.css3
-rw-r--r--www/git.causal.agency/owner-filter.sh6
5 files changed, 12 insertions, 1 deletions
diff --git a/www/git.causal.agency/.gitignore b/www/git.causal.agency/.gitignore
index db5a9275..a0ae074c 100644
--- a/www/git.causal.agency/.gitignore
+++ b/www/git.causal.agency/.gitignore
@@ -2,4 +2,5 @@ about-filter
 hilex
 htagml
 mtags
+owner-filter
 source-filter
diff --git a/www/git.causal.agency/Makefile b/www/git.causal.agency/Makefile
index 6bf52f5a..638c21e7 100644
--- a/www/git.causal.agency/Makefile
+++ b/www/git.causal.agency/Makefile
@@ -3,7 +3,7 @@ WWW = /usr/local/www/cgit
 LIBEXEC = /usr/local/libexec
 
 BIN = ../../bin
-BINS = about-filter source-filter hilex htagml mtags
+BINS = about-filter source-filter owner-filter hilex htagml mtags
 
 all: ${BINS}
 
diff --git a/www/git.causal.agency/cgitrc b/www/git.causal.agency/cgitrc
index 13285116..8ccd7c72 100644
--- a/www/git.causal.agency/cgitrc
+++ b/www/git.causal.agency/cgitrc
@@ -17,6 +17,7 @@ css=/custom.css
 email-filter=/usr/local/libexec/cgit-email
 about-filter=/usr/local/libexec/about-filter
 source-filter=/usr/local/libexec/source-filter
+owner-filter=/usr/local/libexec/owner-filter
 
 readme=:README.7
 readme=:README
diff --git a/www/git.causal.agency/custom.css b/www/git.causal.agency/custom.css
index a84111ac..3bc61c90 100644
--- a/www/git.causal.agency/custom.css
+++ b/www/git.causal.agency/custom.css
@@ -17,6 +17,9 @@ div#cgit {
 div#cgit table#header td.sub {
 	border-top: none;
 }
+div#cgit table#header td.sub.right {
+	padding-right: 1em;
+}
 div#cgit table.tabs {
 	border-bottom: none;
 }
diff --git a/www/git.causal.agency/owner-filter.sh b/www/git.causal.agency/owner-filter.sh
new file mode 100644
index 00000000..18e74cf1
--- /dev/null
+++ b/www/git.causal.agency/owner-filter.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+cat <<EOF
+<a href="https://liberapay.com/june/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>
+EOF