incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1185000 - /incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html
Date Mon, 17 Oct 2011 04:59:58 GMT
Author: eyang
Date: Mon Oct 17 04:59:58 2011
New Revision: 1185000

URL: http://svn.apache.org/viewvc?rev=1185000&view=rev
Log:
AMBARI-49. Added functional UI for HMS. (Eric Yang)

Modified:
    incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html

Modified: incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html?rev=1185000&r1=1184999&r2=1185000&view=diff
==============================================================================
--- incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html (original)
+++ incubator/ambari/branches/branch-0.0/controller/src/main/webapps/status-command.html Mon
Oct 17 04:59:58 2011
@@ -10,6 +10,7 @@
 
 <p>Actions Completed <span id="actions">Loading...</span></p>
 
+<p><div id="progress"></div></p>
 <form class="form">
   <p>
     <button id="expand" onClick="return showHide()">More details...</button>
@@ -43,6 +44,8 @@
     buffer[i++]=' of ';
     buffer[i++]=command['totalActions'];
     $('#actions').text(buffer.join(""));
+    var progress = command['completedActions']/command['totalActions']*100;
+    $('#progress').progressbar({ value: progress });
     buffer = [];
     i = 0;
     var actionEntries;
@@ -84,9 +87,9 @@
   function renderScriptAction(action) {
     var buffer = [];
     var i = 0;
-    buffer[i++] = "<p>Script: ";
+    buffer[i++] = "<p>Action: ";
     buffer[i++] = action['script'];
-    buffer[i++] = "</p><p>Parameters: ";
+    buffer[i++] = " ";
     if (action['parameters'].constructor.toString().indexOf('Array') == -1) {
       buffer[i++] = action['parameters'];
     } else {
@@ -101,8 +104,7 @@
     var i = 0;
     buffer[i++] = "<p>Action: ";
     buffer[i++] = action['actionType'];
-    buffer[i++] = "</p>";
-    buffer[i++] = "<p>Package: ";
+    buffer[i++] = " ";
     var list = action['packages'];
     if(list.constructor.toString().indexOf('Array') == -1) {
       buffer[i++] = action['packages']['name'];
@@ -122,8 +124,7 @@
     var i = 0;
     buffer[i++] = "<p>Action: ";
     buffer[i++] = action['actionType'];
-    buffer[i++] = "</p>";
-    buffer[i++] = "<p>Service: ";
+    buffer[i++] = " ";
     buffer[i++] = action['daemon'];
     buffer[i++] = "</p>";
     return buffer.join("");



Mime
View raw message