ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1398018 - in /incubator/ambari/branches/AMBARI-666: AMBARI-666-CHANGES.txt ambari-web/app/controllers/installer/step9_controller.js ambari-web/app/styles/application.less ambari-web/app/templates/installer/step9.hbs
Date Sun, 14 Oct 2012 05:28:04 GMT
Author: yusaku
Date: Sun Oct 14 05:28:03 2012
New Revision: 1398018

URL: http://svn.apache.org/viewvc?rev=1398018&view=rev
Log:
AMBARI-859. Tighten up the layout for the Install page of the Installer. (yusaku)

Modified:
    incubator/ambari/branches/AMBARI-666/AMBARI-666-CHANGES.txt
    incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer/step9_controller.js
    incubator/ambari/branches/AMBARI-666/ambari-web/app/styles/application.less
    incubator/ambari/branches/AMBARI-666/ambari-web/app/templates/installer/step9.hbs

Modified: incubator/ambari/branches/AMBARI-666/AMBARI-666-CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/AMBARI-666-CHANGES.txt?rev=1398018&r1=1398017&r2=1398018&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/AMBARI-666-CHANGES.txt (original)
+++ incubator/ambari/branches/AMBARI-666/AMBARI-666-CHANGES.txt Sun Oct 14 05:28:03 2012
@@ -251,6 +251,9 @@ AMBARI-666 branch (unreleased changes)
 
   IMPROVEMENTS
 
+  AMBARI-859. Tighten up the layout for the Install page of the Installer.
+  (yusaku)
+
   AMBARI-857. Refactor Install Options page for the Install Wizard. (yusaku)
 
   OPTIMIZATIONS

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer/step9_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer/step9_controller.js?rev=1398018&r1=1398017&r2=1398018&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer/step9_controller.js
(original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer/step9_controller.js
Sun Oct 14 05:28:03 2012
@@ -119,7 +119,7 @@ App.InstallerStep9Controller = Em.ArrayC
     var completedActions = actions.filterProperty('status', 'completed').length
       + actions.filterProperty('status', 'failed').length +
       actions.filterProperty('status', 'aborted').length;
-    var progress = (completedActions / actionsPerHost) * 100;
+    var progress = Math.floor((completedActions / actionsPerHost) * 100);
     console.log('INFO: progressPerHost is: ' + progress);
     contentHost.set('progress', progress.toString());
     return progress;
@@ -209,7 +209,7 @@ App.InstallerStep9Controller = Em.ArrayC
         totalProgress = totalProgress + self.progressPerHost(actions, _content);
       }
     }, this);
-    totalProgress = totalProgress / this.content.length;
+    totalProgress = Math.floor(totalProgress / this.content.length);
     this.set('progress', totalProgress.toString());
     console.log("INFO: right now the progress is: " + this.get('progress'));
     this.finishStep(polledData);

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/styles/application.less
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/styles/application.less?rev=1398018&r1=1398017&r2=1398018&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/styles/application.less (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/styles/application.less Sun Oct 14
05:28:03 2012
@@ -240,6 +240,31 @@ h1 {
       }
     }
   }
+  #deploy {
+    #overallProgress {
+    }
+    #deploy-status-by-host {
+      th.host {
+        width: 30%;
+      }
+      th.status {
+        width: 40%;
+      }
+      th.messgage {
+        width: 30%;
+      }
+      .progress-bar {
+        width: 80%;
+        .progress {
+          margin-bottom: 0;
+        }
+      }
+      .progress-percentage {
+        margin-left: 10px;
+        width: 20% - 10px;
+      }
+    }
+  }
 }
 
 a:focus {

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/templates/installer/step9.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/templates/installer/step9.hbs?rev=1398018&r1=1398017&r2=1398018&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/templates/installer/step9.hbs (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/templates/installer/step9.hbs Sun
Oct 14 05:28:03 2012
@@ -16,17 +16,22 @@
 * limitations under the License.
 -->
 
+<div id="deploy">
+
 <h2>{{t installer.step9.header}}</h2>
 <p class="alert alert-info">{{t installer.step9.body}}</p>
 
-<div>
+<div id="overallProgress">
   {{view.isStepCompleted}}
-  <div {{bindAttr class = "isStepCompleted::progress-striped isStepCompleted::active view.barColor
:progress "}}>
-    <div class="bar" {{bindAttr style = "view.barWidth"}}><strong
-      style="color: #00008b;">Overall Progress</strong>
+  <div class="row-fluid">
+    <div class="span10">
+      <div {{bindAttr class="isStepCompleted::progress-striped isStepCompleted::active
view.barColor :progress"}}>
+        <div class="bar" {{bindAttr style="view.barWidth"}}><!--<strong style="color:
#00008b;">Overall Progress</strong>-->
+        </div>
+      </div>
     </div>
+    <div class="span2">{{progress}}% overall</div>
   </div>
-  <span class="pull-right">{{progress}}%</span> <br/><br/>
 </div>
 
 <div class="box">
@@ -52,15 +57,15 @@
     </div>
 
   </div>
-  <table class="table table-bordered table-striped">
+  <table id="deploy-status-by-host" class="table table-bordered table-striped">
     <thead>
     <tr>
-      <th class="span3">
+      <th class="host">
         Host
       </th>
-      <th class="span4">Status</th>
+      <th class="status">Status</th>
       <!--  given by the parsing function that parses data from bootstrap call -->
-      <th class="span4">Message</th>
+      <th class="message">Message</th>
       <!-- retrieved from local storage initially -->
     </tr>
     </thead>
@@ -73,14 +78,13 @@
       {{host.name}}
     </td>
     <td>
-      <div>
-        <div {{bindAttr class="isStepCompleted::progress-striped isStepCompleted::active
view.barColor :progress"}}>
-          <div class="bar" {{bindAttr style="view.barWidth"}}>
+        <div class="progress-bar pull-left">
+          <div {{bindAttr class="isStepCompleted::progress-striped isStepCompleted::active
view.barColor :progress"}}>
+            <div class="bar" {{bindAttr style="view.barWidth"}}>
+            </div>
           </div>
         </div>
-        <span class="pull-right">{{host.progress}}%</span>
-      </div>
-
+        <div class="progress-percentage pull-left">{{host.progress}}%</div>
     </td>
     <td>
       <a {{bindAttr class="view.isFailed:text-error view.isSuccess:text-success view.isWarning:text-warning"}}
@@ -101,8 +105,9 @@
 </div>
 
 <div>
-  <h4 {{bindAttr class = "view.resultMsgColor"}}>{{view.resultMsg}} </h4>
-
+  {{#if view.resultMsg}}
+  <p {{bindAttr class="view.resultMsgColor :alert"}}>{{view.resultMsg}}</p>
+  {{/if}}
   <div class="btn-area">
     <a
       class="btn pull-left" {{bindAttr disabled="isSubmitDisabled"}} {{action back target="controller"}}>&larr;
@@ -110,4 +115,6 @@
     <a
       class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action
submit target="controller"}}>Next &rarr;</a>
   </div>
+</div>
+
 </div>
\ No newline at end of file



Mime
View raw message