You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/04/07 18:45:42 UTC

[whimsy] branch master updated: Copy the summary status to the GUI display

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  3d4d909   Copy the summary status to the GUI display
3d4d909 is described below

commit 3d4d90955f167785a0e8c5bd5010a0c7a5b7261b
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 7 17:45:33 2016 +0100

    Copy the summary status to the GUI display
---
 www/status/index.cgi | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/status/index.cgi b/www/status/index.cgi
index 0bec5c4..83e8ccb 100755
--- a/www/status/index.cgi
+++ b/www/status/index.cgi
@@ -25,10 +25,11 @@ end
 
 # The following is what infrastructure team sees:
 if %w(success info).include? status[:level]
-  print "Status: 200 OK\r\n\r\n"
+  summary_status = "200 OK"
 else
-  print "Status: 400 #{status[:title] || 'failure'}\r\n\r\n"
+  summary_status = "400 #{status[:title] || 'failure'}"
 end
+print "Status: #{summary_status}\r\n\r\n"
 
 # What the browser sees:
 print <<-EOF
@@ -54,6 +55,9 @@ print <<-EOF
       Loading...
     </div>
 
+    <p>
+    Overall status: #{summary_status}
+    </p>
     <table class="status-legend">
     <tr>
       <td class="alert-success">Success</td>

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].