continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1659811 - in /continuum/trunk/continuum-webapp/src/main/webapp: WEB-INF/jsp/buildResult.jsp css/continuum.css
Date Sat, 14 Feb 2015 16:50:46 GMT
Author: batkinson
Date: Sat Feb 14 16:50:46 2015
New Revision: 1659811

URL: http://svn.apache.org/r1659811
Log:
Added in-progress indicator to output when tailing.

Modified:
    continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp
    continuum/trunk/continuum-webapp/src/main/webapp/css/continuum.css

Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp?rev=1659811&r1=1659810&r2=1659811&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp (original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp Sat Feb 14
16:50:46 2015
@@ -49,9 +49,18 @@
                 $('#noBuildOutput').show();
               }
             }
-
             toggleOutput();  // Show appropriate initial controls
 
+            function showTail(show) {
+              var $oa = $('#outputArea'), tailClass = 'tail-output';
+              if (show) {
+                $oa.addClass(tailClass);
+              } else {
+                $oa.removeClass(tailClass);
+              }
+            }
+            showTail(buildInProgress);  // Show tail indicator if in-progress
+
             function scrollToBottom($textArea) {
               var newHeight = $textArea.attr('scrollHeight');
               $textArea.attr('scrollTop', newHeight);
@@ -79,6 +88,7 @@
                     if (autoScroll) {
                       scrollToBottom($ta);
                     }
+                    showTail(parsed.buildInProgress);
                     if (!parsed.buildInProgress) {
                       location.reload();  // reload page when complete
                     }

Modified: continuum/trunk/continuum-webapp/src/main/webapp/css/continuum.css
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/css/continuum.css?rev=1659811&r1=1659810&r2=1659811&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/css/continuum.css (original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/css/continuum.css Sat Feb 14 16:50:46
2015
@@ -32,6 +32,10 @@ td.tdLabel {
   font-family: monospace;
 }
 
+.tail-output {
+  background: url(/images/building.gif) 5px 479px no-repeat
+}
+
 .pre-wrap {
   white-space: pre-wrap;
   white-space: -moz-pre-wrap;



Mime
View raw message