whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 8f300a6: Convert to HTML
Date Fri, 15 Jan 2016 15:30:41 GMT
Commit 8f300a6f2ebd3ff49e0216f514ebcacc7be8061a:
    Convert to HTML


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/status.cgi                                               | +++++++++++ -
------------------------------------------------------------
12 changes: 11 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/status.cgi b/www/status.cgi
index 4dff47c..ac58401 100755
--- a/www/status.cgi
+++ b/www/status.cgi
@@ -1,3 +1,13 @@
 #!/usr/bin/ruby
+require 'wunderbar'
 
-print "Status: 200 OK\r\nContent-type: text/plain\r\n\r\n200\n"
+# the following is what infrastructure team sees:
+print "Status: 200 OK\r\n"
+
+# For human consumption:
+_html do
+  _h1 "Whimsy-Test Status"
+  _p do
+    _a 'Ping My Box', href: 'https://www.pingmybox.com/dashboard?location=470'
+  end
+end

Mime
View raw message