From 0a054aeb9ce8430a62be05283300ec34e9c2b0af Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 17 Jul 2020 13:23:21 -0400 Subject: Add export option Adding the export query parameter to any page downloads a .html with the default stylesheet embedded, and all navigation, forms and internal links removed, for being able to share some part of a private instance of litterbox. --- networks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networks.c') diff --git a/networks.c b/networks.c index af3ad80..91f5131 100644 --- a/networks.c +++ b/networks.c @@ -53,7 +53,7 @@ enum kcgi_err networksPage(struct kreq *req) { struct khtmlreq html; error = error || khtml_open(&html, req, 0) - || htmlHead(&html, "Litterbox") + || htmlHead(&html, req, "Litterbox") || htmlNav(&html, req); if (error) return error; @@ -100,5 +100,5 @@ enum kcgi_err networksPage(struct kreq *req) { if (error) return error; } if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db)); - return htmlFooter(&html) || khtml_close(&html); + return htmlFooter(&html, req) || khtml_close(&html); } -- cgit 1.4.1 log tree commit diff
path: root/rc.d/litterbox (unfollow)
Commit message (Collapse)Author
2020-01-18Rearrange code in scoopJune McEnroe
2020-01-16Add scoop flag for local timeJune McEnroe
2020-01-14Remove note about usernames for pounceJune McEnroe
This is done automatically with the causal.agency/passive capability now.
2020-01-14Reference IRCv3.1 SASL specJune McEnroe
2020-01-14Ensure ansi resets formatting and null-terminatesJune McEnroe
fmemopen in text-mode only ensures the buffer is null-terminated if the last write does not fill the buffer.
2020-01-14Implement IRC formatting to ANSI translationJune McEnroe
2020-01-14Add -b flag for live backupJune McEnroe
2020-01-14Add columnsize = 0 option to FTS indexJune McEnroe
Since we don't use ranking functions and I don't see them being useful, there is no point in having columnsize, which just takes extra space in the database. In my database of approximately 3.5 million events, disabling columnsize saves about 62 MB. The migration unfortunately has to rebuild the entire index to disable it.
2020-01-12Add option for client cert and SASL EXTERNALJune McEnroe
2020-01-12Add Linux.mkJune McEnroe
2020-01-11Fix unscoop dedup window syntaxJune McEnroe
2020-01-11Bump busy timeout to 10sJune McEnroe