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 63153f8d Show notice on status page
63153f8d is described below

commit 63153f8dcee977498489b0ceb45b8e4f4468e0c2
Author: Sebb <[email protected]>
AuthorDate: Fri Mar 14 19:44:11 2025 +0000

    Show notice on status page
---
 www/status/index.cgi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/status/index.cgi b/www/status/index.cgi
index 894ed3a4..b6ae9add 100755
--- a/www/status/index.cgi
+++ b/www/status/index.cgi
@@ -68,6 +68,13 @@ timediff('git ls-remote')
 
 hostname = `hostname`
 
+noticetext, noticepath = Status.notice # is there a notice file?
+if noticetext
+  notice = "<h3 class='alert-warning'><a 
href=#{noticepath}>#{noticetext}</a></h3><br>"
+else
+  notice = ''
+end
+
 # What the browser sees:
 print <<-EOF
 <!DOCTYPE html>
@@ -90,6 +97,8 @@ print <<-EOF
     </a>
     <h1>Whimsy Status for #{hostname}</h1>
 
+    #{notice}
+
     <div class="list-group list-group-root well">
       Loading...
     </div>

Reply via email to