This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 56cbdcd0 Add some links
56cbdcd0 is described below
commit 56cbdcd0dfaa713694f9fe98588459ce888d1a6c
Author: Sebb <[email protected]>
AuthorDate: Sun Oct 27 17:59:44 2024 +0000
Add some links
---
www/board_minutes.cgi | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/www/board_minutes.cgi b/www/board_minutes.cgi
index c00a6e6c..715616fb 100755
--- a/www/board_minutes.cgi
+++ b/www/board_minutes.cgi
@@ -13,13 +13,15 @@ import boardminutes2html
# Where to find minutes (locally to Whimsy)
MINUTES_TXT = '/srv/svn/minutes'
+MINUTES_HTTPS = 'https://www.apache.org/foundation/records/minutes'
HEAD = """<head>
<meta charset="UTF-8">
</head>
<body>"""
-TAIL = """</body>
+TAIL = """<p>Generated dynamically by Whimsy</p>
+</body>
</html>"""
def minutes(path):
@@ -76,7 +78,9 @@ def main():
print(f"No such file as {source}")
return
with open(source, encoding='utf8') as inp:
- boardminutes2html.text2html(inp, sys.stdout)
+ extrahdr = f"""Links: <a href="../{year}">{year}</a> - <a
href="../">All years</a>
+- <a href="{MINUTES_HTTPS}/{year}/{basename}" target="_blank">Original</a>"""
+ boardminutes2html.text2html(inp, sys.stdout, extrahdr)
else:
print(f"Invalid request {parts} {len(parts)}")
except Exception as ex: