You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/01/15 16:30:41 UTC

[whimsy.git] [1/1] Commit 8f300a6: Convert to HTML

Commit 8f300a6f2ebd3ff49e0216f514ebcacc7be8061a:
    Convert to HTML


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@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