You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/02/17 22:06:20 UTC

[21/50] [abbrv] ambari git commit: AMBARI-19823. If by any case Migration Is hampered Then No message is shown in UI Hue-Ambari Migration view. (Ishan Bhatt via gauravn7)

http://git-wip-us.apache.org/repos/asf/ambari/blob/4aa0f623/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-udf.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-udf.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-udf.hbs
index 74b1cca..b2112c8 100644
--- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-udf.hbs
+++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-udf.hbs
@@ -14,96 +14,105 @@ See the License for the specific language governing permissions and
 limitations under the License.
 }}
 <div class="panel panel-default">
-    <div class="panel-heading">
-        <h3>Pig UDFs Migration
-        </h3>
+  <div class="panel-heading">
+    <h3>Pig UDFs Migration
+    </h3>
+  </div>
+  <div class="panel-body">
+    <div class="row">
+      <div class="col-sm-3">
+        User Name
+        <font size="3" color="red"> *
+        </font>
+      </div>
+      <div class="col-sm-3">
+        {{ember-selectize content=model.usersdetail  selection=model.selections optionValuePath="content.username" optionLabelPath="content.username" multiple=true add-value="addSelection" remove-value="removeSelection" placeholder="Select an userName" }}
+      </div>
     </div>
-    <div class="panel-body">
-        <div class="row">
-            <div class="col-sm-3">
-                User Name
-                <font size="3" color="red"> *
-                </font>
-            </div>
-            <div class="col-sm-3">
-                {{ember-selectize content=model.usersdetail  selection=model.selections optionValuePath="content.username" optionLabelPath="content.username" multiple=true add-value="addSelection" remove-value="removeSelection" placeholder="Select an userName" }}
-            </div>
-        </div>
-        <br>
-        <div class="row">
-            <div class="col-sm-3">
-                Instance Name
-                <font size="3" color="red"> *
-                </font>
-            </div>
-            <div class="col-sm-3">
-                {{ember-selectize content=model.piginstancedetail  optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename  placeholder="Select an Instance name" }}
-            </div>
-        </div>
-        <br>
-        <div class="row">
-            <div class="col-sm-3">
-                <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit
-                </button>
-            </div>
-            <div class="col-sm-3">
-                {{#if jobstatus}}
-                    <h5>
-                        <font color="green">Job has been Submitted.
-                        </font>
-                    </h5>
-                {{/if}}
-            </div>
-        </div>
-        <br>
-        <div class="row">
-            <div class="col-sm-9">
-                {{#if jobstatus}}
-                    <br>
-                    <div class="progress" id="progressbar" style="">
-                        <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50"  style="width:{{progressBar}}%">
-                        </div>
-                    </div>
-                {{/if}}
-            </div>
-        </div>
-        <div class="row">
-            <div class="col-sm-9">
-                {{#if completionStatus}}
-                    <h2>Migration Report
-                    </h2>
-                    <table class="table table-hover">
-                        <thead>
-                        <tr>
-                            <th>Parameters</th>
-                            <th>Status</th>
-                        </tr>
-                        </thead>
-                        <tbody>
-                        <tr>
-                            <td>Number of UDFs Transferred</td>
-                            <td>{{numberOfQueryTransfered}}</td>
-                        </tr>
-                        <tr>
-                            <td>Total Number of UDFs</td>
-                            <td>{{totalNoQuery}}</td>
-                        </tr>
-                        <tr>
-                            <td>Total Time Taken</td>
-                            <td>{{totalTimeTaken}}ms</td>
-                        </tr>
-                        <tr>
-                            <td>Hue Users</td>
-                            <td>{{Username}}</td>
-                        </tr>
-                        <tr>
-                            <td>Ambari Instance Name(Target)</td>
-                            <td>{{instanceName}}</td>
-                        </tr>
-                        </tbody>
-                    </table>
-                {{/if}}
+    <br>
+    <div class="row">
+      <div class="col-sm-3">
+        Instance Name
+        <font size="3" color="red"> *
+        </font>
+      </div>
+      <div class="col-sm-3">
+        {{ember-selectize content=model.piginstancedetail  optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename  placeholder="Select an Instance name" }}
+      </div>
+    </div>
+    <br>
+    <div class="row">
+      <div class="col-sm-3">
+        <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit
+        </button>
+      </div>
+      <div class="col-sm-3">
+        {{#if jobstatus}}
+          <h5>
+            <font color="green">Job has been Submitted.
+            </font>
+          </h5>
+        {{/if}}
+      </div>
+    </div>
+    <br>
+    <div class="row">
+      <div class="col-sm-9">
+        {{#if jobstatus}}
+          <br>
+          <div class="progress" id="progressbar" style="">
+            <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50"
+                 aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%">
             </div>
-        </div>
+          </div>
+        {{/if}}
+      </div>
+    </div>
+    <div class="row">
+      <div class="col-sm-9">
+        {{#if error}}
+          <h3>Error Occured during migration</h3>
+          <p><span class="alert-danger">{{error}}</span></p>
+        {{/if}}
+      </div>
+    </div>
+    <div class="row">
+      <div class="col-sm-9">
+        {{#if completionStatus}}
+          <h2>Migration Report
+          </h2>
+          <table class="table table-hover">
+            <thead>
+            <tr>
+              <th>Parameters</th>
+              <th>Status</th>
+            </tr>
+            </thead>
+            <tbody>
+            <tr>
+              <td>Number of UDFs Transferred</td>
+              <td>{{numberOfQueryTransfered}}</td>
+            </tr>
+            <tr>
+              <td>Total Number of UDFs</td>
+              <td>{{totalNoQuery}}</td>
+            </tr>
+            <tr>
+              <td>Total Time Taken</td>
+              <td>{{totalTimeTaken}}ms</td>
+            </tr>
+            <tr>
+              <td>Hue Users</td>
+              <td>{{Username}}</td>
+            </tr>
+            <tr>
+              <td>Ambari Instance Name(Target)</td>
+              <td>{{instanceName}}</td>
+            </tr>
+            </tbody>
+          </table>
+        {{/if}}
+      </div>
     </div>
+  </div>
 </div>