ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [06/10] ambari git commit: AMBARI-8402. View: Pig ui updates + flow changes (alexantonenko)
Date Tue, 25 Nov 2014 17:14:30 GMT
http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/logDownload.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/logDownload.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/logDownload.hbs
new file mode 100644
index 0000000..ed47d62
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/logDownload.hbs
@@ -0,0 +1,42 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+{{#pig-modal ok='confirm' size='lg' class='logModal'}}
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+    {{#if jobLogsLoader.isFulfilled}}
+    <p class="pull-right" ><a href="#" {{action 'download'}}><i class="fa fa-download"></i> {{t 'common.download'}}</a></p>
+    {{/if}}
+    <h4 class="modal-title">{{t 'job.logs'}} </h4>
+  </div>
+  <div class="modal-body">
+    {{#if jobLogsLoader.isPending}}
+      <pre><div class="spinner-sm"></div></pre>
+    {{else}}
+      {{#if jobLogsLoader.isFulfilled}}
+      <pre>{{jobLogsLoader.content.fileContent}}</pre>
+      {{/if}}
+      {{#if jobLogsLoader.isRejected}}
+        {{jobLogsLoader.reason}}
+      {{/if}}
+    {{/if}}
+  </div>
+  <div class="modal-footer">
+    <button type="button" {{action "cancel" target="view"}} class="btn btn-default" data-dismiss="modal">{{t 'common.close'}} </button>
+  </div>
+{{/pig-modal}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/modalLayout.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/modalLayout.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/modalLayout.hbs
new file mode 100644
index 0000000..0aca82f
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/modalLayout.hbs
@@ -0,0 +1,25 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div class="modal fade in" data-backdrop="static">
+  <div {{bind-attr class=":modal-dialog large:modal-lg small:modal-sm" }}>
+    <div class="modal-content">
+      {{yield}}
+    </div><!-- /.modal-content -->
+  </div><!-- /.modal-dialog -->
+</div><!-- /.modal -->

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/resultsDownload.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/resultsDownload.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/resultsDownload.hbs
new file mode 100644
index 0000000..5de0cfa
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/modal/resultsDownload.hbs
@@ -0,0 +1,42 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+{{#pig-modal ok='confirm' size='lg' class='resultsModal'}}
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+      {{#if jobResultsLoader.isFulfilled}}
+      <p class="pull-right" ><a href="#" {{action 'download'}}><i class="fa fa-download"></i> {{t 'common.download'}}</a></p>
+      {{/if}}
+    <h4 class="modal-title">{{t 'job.results'}}</h4>
+  </div>
+  <div class="modal-body">
+    {{#if jobResultsLoader.isPending}}
+      <pre><div class="spinner-sm"></div></pre>
+    {{else}}
+      {{#if jobResultsLoader.isFulfilled}}
+      <pre>{{jobResultsLoader.content.fileContent}}</pre>
+      {{/if}}
+      {{#if jobResultsLoader.isRejected}}
+        {{jobResultsLoader.reason}}
+      {{/if}}
+    {{/if}}
+  </div>
+  <div class="modal-footer">
+    <button type="button" {{action "cancel" target="view"}} class="btn btn-default" data-dismiss="modal">{{t 'common.close'}}</button>
+  </div>
+{{/pig-modal}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/alert-content.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/alert-content.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/alert-content.hbs
new file mode 100644
index 0000000..08ce680
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/alert-content.hbs
@@ -0,0 +1,25 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<button type="button" class="close" >&times;</button>
+<p>
+  {{view.content.message}}
+</p>
+{{#if view.content.trace}}
+    <a href="#" {{action 'showErrorLog' view.content}}>{{t 'common.showErrorLog'}}</a>
+{{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/paginationControls.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/paginationControls.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/paginationControls.hbs
new file mode 100644
index 0000000..5543b94
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/partials/paginationControls.hbs
@@ -0,0 +1,42 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div class="pagination-block">
+  <div class="items-count">
+    <label >{{t 'common.show'}}
+      {{view Ember.Select content=perPageOptions class="form-control" value=perPage}}
+    </label>
+  </div>
+  <div class="items-info">
+    <span>{{paginationInfo}}</span>
+  </div>
+  <div class="items-buttons">
+    <ul class="pagination">
+      {{#if prevPage}}
+        <li><a href="#" {{action "selectPage" prevPage}}><i class="fa fa-arrow-left"></i></a></li>
+      {{else}}
+        <li class="disabled"><a><i class="fa fa-arrow-left"></i></a></li>
+      {{/if}}
+      {{#if nextPage}}
+        <li><a href="#" {{action "selectPage" nextPage}}><i class="fa fa-arrow-right"></i></a></li>
+      {{else}}
+        <li class="disabled"><a><i class="fa fa-arrow-right"></i></a></li>
+      {{/if}}
+    </ul>
+  </div>
+</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig.hbs
index 70e87ae..881fd82 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig.hbs
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig.hbs
@@ -18,11 +18,37 @@
 
 <div class="container-fluid">
   <div class="row">
-    <div class="col-md-2 navigation">
-      {{view view.navItemsView}}
+    <div class="col-md-3 navigation">
+      <div class="well">
+
+        {{view view.navItemsView}}
+        <div class="nav-script-wrap">
+          <div class=" nav-script" >
+            <div>
+              <button type="button" class="close_script" {{action closeScript}}>
+                <i class="fa fa-times"></i>
+              </button>
+            </div>
+            <div class="script-title">
+              {{#if activeScript.label}}
+                <span>{{activeScript.label}}</span>
+                {{else}}
+                <span>...</span>
+              {{/if}}
+            </div>
+           <ul class="script-actions list-unstyled">
+              <li><a href="#" {{action "saveScript" activeScript}} {{bind-attr class=":btn :btn-block saveEnabled::disabled"}} ><i class="fa fa-fw fa-save"></i> {{t 'common.save'}}</a></li>
+              <li><a href="#" {{action "copyScript" activeScript}} {{bind-attr class=":btn :btn-block disableScriptControls:disabled"}} ><i class="fa fa-fw fa-copy"></i> {{t 'common.copy'}}</a></li>
+              <li class="divider"></li>
+              <li><a href="#" {{action "deletescript" activeScript}} {{bind-attr class=":btn :btn-block disableScriptControls:disabled"}}  ><i class="fa fa-fw fa-trash-o"></i> {{t 'common.delete'}}</a></li>
+            </ul>
+          </div>
+        </div>
+      </div>
+
       {{outlet alert}}
     </div>
-    <div class="col-md-10">
+    <div class="col-md-9">
       {{outlet}}
     </div>
   </div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/alert.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/alert.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/alert.hbs
new file mode 100644
index 0000000..c3a2215
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/alert.hbs
@@ -0,0 +1,21 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div id="alert-wrap">
+ {{view view.alertsView}}
+</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/history.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/history.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/history.hbs
index a5a4af9..e58e0df 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/history.hbs
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/history.hbs
@@ -16,37 +16,53 @@
    limitations under the License.
 }}
 
-<div class="panel panel-default panel-history">
-  <div class="panel-heading">
-    <span class="panel-title">
-      {{t 'common.history'}}
-    </span>
+<div class="panel-history">
+  <div class="title-row">
+    <h3 class="pull-left"> {{t 'common.history'}}</h3>
   </div>
-  
-  <table class="table table-bordered table-striped ">
+  <table class="table table-striped ">
     <thead> 
       <tr class="label-row">
-        <th class="first">{{t 'job.name'}}</th>
-        <th>{{t 'job.started'}}</th> 
+        <th>{{t 'common.date'}}</th>
+        <th>{{t 'scripts.script'}}</th>
         <th>{{t 'job.status'}}</th> 
-        <th></th> 
+        <th>{{t 'history.duration'}}</th>
+        <th>{{t 'common.actions'}}</th>
       </tr>
     </thead>
     <tbody> 
-    {{#each jobs}}
-      {{#view view.historyTableRow}}
-        <tr> 
-          <td class="first">{{#link-to 'job' this.id }} {{this.title}}{{/link-to}}</td>
-          <td><span class="date">{{showDate this.dateStarted 'YYYY-MM-DD HH:mm'}}</span></td>
-          <td><span {{bind-attr class=":label view.labelClass"}}>{{this.status}}</span></td>
-          <td>{{#link-to 'job.results' this.id }} {{t 'job.results'}} {{/link-to}}</td>
-        </tr>
-      {{/view}}
+    {{#each paginatedContent}}
+      <tr>
+        <td>{{#link-to 'script.job' this.id }} {{showDate this.dateStarted 'YYYY-MM-DD HH:mm'}} {{/link-to}}</td>
+        <td>
+          {{#view 'view.scriptLink' scriptId=this.scriptId allIds=controller.scriptIds}}{{this.title}}{{/view}}
+        </td>
+        <td>
+          <h4>
+            <span {{bind-attr class=":label jobSuccess:label-success jobError:label-danger jobInProgress:label-warning "}} class="label label-success">{{status}}</span>
+          </h4>
+        </td>
+        <td>{{#unless jobInProgress}}{{durationTime}}{{/unless}}</td>
+        <td>
+          {{#unless jobInProgress}}
+            <a {{action 'logsPopup' this}} href="#" title="Logs"> <i class="fa fa-file-text-o"></i></a>
+            <a {{action 'resultsPopup' this}} href="#" title="Results"> <i class="fa fa-table"></i></a>
+          {{/unless}}
+          <a href="#" {{action 'deleteJob' this}} title="Delete"><i class="fa fa-trash-o"></i></a>
+        </td>
+      </tr>
     {{/each}}
     </tbody>
   </table>
-
   {{#unless content}}
-    <div class="panel-footer empty-table-footer">{{t 'job.noJobs'}}</div>
+    <div class="alert alert-info" role="alert">{{t 'history.no_jobs_message'}}</div>
   {{/unless}}
 </div>
+
+{{#if content}}
+  {{partial 'partials/paginationControls'}}
+{{/if}}
+
+{{#if content}}
+  {{partial 'partials/paginationControls'}}
+{{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/index.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/index.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/index.hbs
deleted file mode 100644
index e3cbb1e..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/index.hbs
+++ /dev/null
@@ -1,19 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/job.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/job.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/job.hbs
deleted file mode 100644
index ed81a68..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/job.hbs
+++ /dev/null
@@ -1,39 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="well well-sm">
-  <div class="jobStatus" style="margin-bottom: 5px;">
-    <small>
-    {{t 'job.job_status'}} <strong>{{content.status}}</strong>
-    </small>
-  </div>
-
-  {{#if content.needsPing}}
-    {{#unless content.isKilling}}
-      <button {{action "killjob" content}} type="button" class="btn btn-danger btn-xs kill-button">Kill</button>
-    {{/unless}}
-    {{#if content.isKilling}}
-      <div class="spinner-sm pull-left kill-button"></div>
-    {{/if}}
-  {{/if}}
-
-  {{view view.progressBar contentBinding="content"}}
-</div>
-
-
-{{outlet}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobEdit.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobEdit.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobEdit.hbs
deleted file mode 100644
index 0efb5b2..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobEdit.hbs
+++ /dev/null
@@ -1,18 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResults.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResults.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResults.hbs
deleted file mode 100644
index 67c49bd..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResults.hbs
+++ /dev/null
@@ -1,19 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-{{view view.outputView}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResultsOutput.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResultsOutput.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResultsOutput.hbs
deleted file mode 100644
index 947b973..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobResultsOutput.hbs
+++ /dev/null
@@ -1,40 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="panel-heading">
-  <div class="btn-group" data-toggle="buttons" >
-    <label id='btn-stdout' {{action 'getOutput' 'stdout' target="view"}} {{bind-attr class=":btn :btn-success view.isLoadingOutput:disabled:" }} >
-      <input type="radio" name="options"> {{t  'job.job_results.stdout'}}
-    </label>
-    <label id='btn-stderr' {{action 'getOutput' 'stderr' target="view"}} {{bind-attr class=":btn :btn-danger view.isLoadingOutput:disabled:" }}>
-      <input type="radio" name="options"> {{t  'job.job_results.stderr'}}
-    </label>
-    <label id='btn-exitcode' {{action 'getOutput' 'exitcode' target="view"}} {{bind-attr class=":btn :btn-default view.isLoadingOutput:disabled:" }}>
-      <input type="radio" name="options"> {{t  'job.job_results.exitcode'}}
-    </label>
-  </div>
-</div>
-<div class="panel-body">
-
-  {{#unless view.isLoadingOutput}}
-    <pre>{{view.activeOutput}}</pre>
-  {{/unless}}
-  {{#if view.isLoadingOutput}}
-    <div class="spinner-sm"></div>
-  {{/if}}
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobStatus.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobStatus.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobStatus.hbs
deleted file mode 100644
index 0efb5b2..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/jobStatus.hbs
+++ /dev/null
@@ -1,18 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/confirmdelete.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/confirmdelete.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/confirmdelete.hbs
deleted file mode 100644
index 39e3a1c..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/confirmdelete.hbs
+++ /dev/null
@@ -1,29 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="modal-header">
-  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-  <h4 class="modal-title">{{t 'scripts.modal.confirm_delete'}}</h4>
-</div>
-<div class="modal-body">
-{{t 'scripts.modal.confirm_delete_massage' titleBinding="content.title" tagName="p"}}
-</div>
-<div class="modal-footer">
-  <button type="button" {{action "close" target="view"}} class="btn btn-default" data-dismiss="modal">{{t 'common.cancel'}}</button>
-  <button type="button" {{action "confirm" content target="view"}} class="btn btn-danger">{{t 'common.delete'}}</button>
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createScript.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createScript.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createScript.hbs
deleted file mode 100644
index 0d8d459..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createScript.hbs
+++ /dev/null
@@ -1,40 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="modal-header">
-  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-  <h4 class="modal-title">{{t 'scripts.modal.create_script'}}</h4>
-</div>
-<div class="modal-body">
-<div class="form-group">
-  {{#if error}}
-    <div class="alert alert-danger">{{error}}</div>
-  {{/if}}
-    <label for="exampleInputEmail1">{{t 'scripts.title'}}</label>
-    {{input class="form-control" placeholderTranslation="scripts.modal.script_title_placeholder" valueBinding="content.title"}}
-  </div>
-  <div class="form-group">
-    <label for="exampleInputPassword1">{{t 'scripts.path'}}</label>
-    {{input class="form-control" placeholderTranslation="scripts.modal.file_path_placeholder" valueBinding="filePath"}}
-    <small class="pull-right help-block">{{t 'scripts.modal.file_path_hint'}}</small>
-  </div>
-</div>
-<div class="modal-footer">
-  <button type="button" {{action "close" content target="view"}} class="btn btn-default" >{{t 'common.cancel'}}</button>
-  <button type="button" {{action "create" content target="view"}} {{bind-attr disabled="view.udfInvalid"}} class="btn btn-success">{{t 'common.create'}}</button>
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createUdf.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createUdf.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createUdf.hbs
deleted file mode 100644
index a47ad1e..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/createUdf.hbs
+++ /dev/null
@@ -1,36 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="modal-header">
-  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-  <h4 class="modal-title">{{t 'udfs.modal.create_udf'}}</h4>
-</div>
-<div class="modal-body">
-<div class="form-group">
-    <label for="exampleInputEmail1">{{t 'common.name'}}</label>
-    {{input class="form-control" placeholderTranslation="udfs.modal.udf_name" valueBinding="content.name"}}
-  </div>
-  <div class="form-group">
-    <label for="exampleInputPassword1">{{t 'common.path'}}</label>
-    {{input class="form-control" placeholderTranslation="udfs.modal.hdfs_path" valueBinding="content.path"}}
-  </div>
-</div>
-<div class="modal-footer">
-  <button type="button" {{action "close" content target="view"}} class="btn btn-default" >{{t 'common.cancel'}}</button>
-  <button type="button" {{action "createUdf" content target="view"}} {{bind-attr disabled="view.udfInvalid"}} class="btn btn-success">{{t 'common.create'}}</button>
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/modalLayout.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/modalLayout.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/modalLayout.hbs
deleted file mode 100644
index 79bebd9..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/modal/modalLayout.hbs
+++ /dev/null
@@ -1,25 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="modal fade in" data-backdrop="static">
-  <div class="modal-dialog">
-    <div class="modal-content">
-      {{yield}}
-    </div><!-- /.modal-content -->
-  </div><!-- /.modal-dialog -->
-</div><!-- /.modal -->

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEdit.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEdit.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEdit.hbs
deleted file mode 100644
index a79d19f..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEdit.hbs
+++ /dev/null
@@ -1,167 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="edit-script">
-    <div {{bind-attr class=":panel :panel-editscript scriptError:panel-danger:panel-default"}} >
-      <div class="panel-heading">
-        <div class="head control-group">
-            {{outlet nav}}
-            {{#unless isRenaming}}
-              <div  {{bind-attr class="controller.isScript:input-group :input-title"}}>
-                {{input id="title" placeholderTranslation="scripts.title" class="form-control" disabled='disabled' valueBinding="content.title"}}
-                <div {{bind-attr class=":input-group-btn controller.isJob:hide"}}>
-                  <button  type="button" {{action 'rename' 'ask'}} {{bind-attr class=":btn :btn-default :btn-rename-ask"}} >
-                    <span class="glyphicon glyphicon-edit"></span>
-                  </button>
-                </div>
-              </div>
-            {{else}}
-              <div  {{bind-attr class=":input-group :input-title"}}>
-                {{input id="title" placeholderTranslation="scripts.title" class="form-control" valueBinding="content.title"}}
-                <div class="input-group-btn">
-                  <button  type="button" {{action 'rename' 'cancel'}} {{bind-attr class=":btn :btn-default :btn-rename-cancel"}} >
-                    <span class="glyphicon glyphicon-remove"></span> {{t 'common.cancel'}}
-                  </button>
-                </div>
-                <div class="input-group-btn">
-                  <button  type="button" {{action 'rename' 'confirm'}} {{bind-attr class=":btn :btn-primary :btn-rename-confirm"}} >
-                    <span class="glyphicon glyphicon-ok"></span> {{t 'editor.save'}}
-                  </button>
-                </div>
-              </div>
-            {{/unless}}
-        </div>
-      </div>
-      {{#if view.showEditor}}
-      <div class="panel-body" >
-        <div class="pull-left">
-        {{#if view.isEditConfirmed}}
-          {{view view.pigHelperView class="btn-group" }}
-          <div class="btn-group">
-              <button type="button" data-toggle="dropdown" {{bind-attr class=":btn :btn-default :btn-xs :dropdown-toggle ufdsList.length::disabled"}} >
-                {{t 'editor.udfhelper'}}
-                <span class="caret"></span>
-              </button>
-              <ul class="dropdown-menu">
-              {{#each ufdsList}}
-                <li><a href="#" {{action 'insertUdf' this target="view" }}>{{this.name}}</a></li>
-              {{/each}}
-              </ul>
-          </div>
-        {{/if}}
-        </div>
-        <kbd class="file-path pull-right" data-toggle="tooltip" data-placement="bottom"{{translateAttr title="udfs.tooltips.path"}} >
-          {{#unless content.pigScript.isLoaded}}
-            <div class="spinner-sm"></div>
-          {{/unless}}
-          {{#if content.pigScript.isLoaded}}
-            {{content.pigScript.id}}
-          {{/if}}
-        </kbd>
-      </div>
-      <div class="editor-container">
-        {{#if controller.isJob}}
-          {{#unless view.isEditConfirmed}}
-            <div class="edit-confirm">
-              <div class="well edit-confirm-container">
-                When you executed job, script was copied to another place in filesystem. <br />
-                You're going to edit the <u>copy of original script</u> from history<br />
-                <button {{action "confirmEdit" target="view"}} class="btn btn-large" type="button">Edit script from history</button>
-                {{#if content.scriptId}}
-                  <button {{action "returnToOriginal" content}} class="btn btn-large btn-primary" type="button">Return to original file</button>
-                {{/if}}
-              </div>
-            </div>
-          {{/unless}}
-        {{/if}}
-        {{view view.codeMirrorView id="pig_script" contentBinding="content.pigScript"}}
-      </div>
-      <div class="panel-footer" >
-        <span>
-          {{#with controller}}
-            {{#each controller.pigArgumentsPull}}
-              <span {{bind-attr class=":argument controller.isScript:editable:"}} >
-                <span class="title"> {{this}} </span>
-                {{#if controller.isScript}}
-                <button {{action "removeArgument" this}}  class="close rm-arg">
-                    &times;
-                </button>
-                {{/if}}
-              </span>
-            {{/each}}
-          {{/with}}
-          {{#if controller.isScript}}
-          {{view view.argumentInput placeholderTranslation="editor.pig_argument"}}
-            <button {{action "sendArgument" target="view.argumentInput" }} type="button" {{bind-attr class=":btn :btn-default :btn-xs view.argumentInput.value::disabled"}}>
-              <span class="glyphicon glyphicon-plus"></span> {{t 'common.add'}}
-            </button>
-          {{/if}}
-        </span>
-      </div>
-      {{else}}
-      <table class="table table-results">
-        <tr>
-          <td>{{t 'common.path'}}:</td>
-          <td><kbd>{{content.pigScript.id}}</kbd></td>
-        </tr>
-        <tr>
-          <td>{{t 'job.started'}}:</td>
-          <td>{{showDate content.dateStarted 'YYYY-MM-DD HH:mm'}}</td>
-        </tr>
-        <tr>
-          <td>{{t 'common.arguments'}}:</td>
-          <td>
-            {{#each pigArgumentsPull}}
-              <span {{bind-attr class=":argument controller.isScript:editable:"}} >
-                <span class="title"> {{this}} </span>
-              </span>
-            {{/each}}
-          </td>
-        </tr>
-      </table>
-      {{/if}}
-
-    </div>
-
-    {{outlet main}}
-
-    <div class="form-inline pigParams">
-    {{#each pigParams}}
-    <div class="form-group">
-      <label class="control-label">{{this.title}}</label>
-      <div class="">
-       {{view view.pigParamView class='form-control input-sm' valueBinding='value'}}
-      </div>
-    </div>
-    {{/each}}
-    </div>
-    {{#if view.showEditor}}
-    <div class="controls">
-      {{#unless isExec}}
-        <button {{action "execute" content 'execute' }} type="button" class="btn btn-default">{{t 'editor.execute'}}</button>
-        <button {{action "execute" content 'explain' }} type="button" class="btn btn-default">{{t 'editor.explain'}}</button>
-        <button {{action "execute" content 'syntax_check' }} type="button" class="btn btn-default">{{t 'editor.syntax_check'}}</button>
-        <input type="button" {{action "saveScript" content}} {{bind-attr class=":btn :btn-primary scriptDirty::disabled"}} {{translateAttr value="editor.save"}} >
-      {{/unless}}
-
-      {{#if isExec}}
-        <div class="spinner-sm"></div>
-      {{/if}}
-    </div>
-    {{/if}}
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEditIndex.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEditIndex.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEditIndex.hbs
deleted file mode 100644
index 0efb5b2..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptEditIndex.hbs
+++ /dev/null
@@ -1,18 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptList.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptList.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptList.hbs
deleted file mode 100644
index a460a71..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptList.hbs
+++ /dev/null
@@ -1,62 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div class="panel panel-default panel-scriptlist">
-  <div class="panel-heading">
-    <span class="panel-title">
-      {{t 'scripts.scripts'}}
-    </span>
-    <a {{action "createScript"}} class="btn btn-default btn-sm pull-right new-script"><span class="glyphicon glyphicon-plus"></span> {{t 'scripts.newscript'}}</a>
-  </div>
-  
-  <table class="table table-bordered table-striped ">
-    <thead> 
-      <tr class="label-row"> 
-        <th class="first">{{t 'common.name'}}</th> 
-        <th>{{t 'common.created'}}</th> 
-        <th></th> 
-      </tr>
-    </thead>
-    <tbody>
-    {{#each content}}
-      <tr>
-
-        <td class="first">{{#link-to 'pig.scriptEdit' this.id}}
-          {{#if this.isNew}}
-            <div class="spinner-sm"></div>
-          {{/if}}
-          {{#unless this.isNew}}
-            {{this.title}}
-          {{/unless}}
-        {{/link-to}}</td>
-        <td><span class="date">{{showDate this.dateCreated 'YYYY-MM-DD HH:mm'}}</span></td>
-        <td>
-          {{#unless this.isNew}}
-            <a href="#" {{action "deletescript" this}}>{{t 'common.delete'}}</a>
-          {{/unless}}
-        </td>
-      </tr>
-    {{/each}}
-    </tbody>
-  </table>
-  {{#unless content}}
-    <div class="panel-footer empty-table-footer">{{t 'scripts.noScripts'}}</div>
-  {{/unless}}
-</div>
-
-{{outlet modal}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResults.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResults.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResults.hbs
deleted file mode 100644
index 0efb5b2..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResults.hbs
+++ /dev/null
@@ -1,18 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResultsNav.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResultsNav.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResultsNav.hbs
deleted file mode 100644
index a94716f..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scriptResultsNav.hbs
+++ /dev/null
@@ -1,19 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-{{view view.navResultsView }}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scripts.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scripts.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scripts.hbs
new file mode 100644
index 0000000..fa65171
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/scripts.hbs
@@ -0,0 +1,86 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div class="scriptlist">
+  <div class="title-row">
+    <h3 class="pull-left">{{t 'scripts.scripts'}}</h3>
+    <a {{action "createScript"}} class="btn btn-default pull-right new-script"><i class="fa fa-plus"></i> {{t 'scripts.newscript'}}</a>
+  </div>
+  <table class="table table-striped ">
+    <thead>
+      <tr class="label-row">
+        <th class="first">{{t 'common.name'}}</th>
+        <th>{{t 'scripts.last_executed'}}</th>
+        <th>{{t 'scripts.last_results'}}</th>
+        <th>{{t 'common.actions'}}</th>
+      </tr>
+    </thead>
+    <tbody>
+    {{#each paginatedContent}}
+      {{#script-list-row script=this jobs=controller.jobs}}
+        <td class="first">{{#link-to 'script.edit' id}}
+          {{#if isNew}}
+            <div class="spinner-sm"></div>
+          {{/if}}
+          {{#unless isNew}}
+            {{title}}
+          {{/unless}}
+        {{/link-to}}
+        </td>
+        <td>
+          {{#if view.currentJob}}
+            <span class="date">{{showDate view.currentJob.dateStarted 'YYYY-MM-DD HH:mm'}}</span>
+          {{else}}
+            {{t 'scripts.not_run_message'}}
+          {{/if}}
+        </td>
+        <td>
+        {{#if view.currentJob.jobInProgress}}
+          <h4>
+            <span class="label label-warning">{{view.currentJob.status}}</span>
+          </h4>
+        {{/if}}
+        {{#if view.currentJob.jobSuccess}}
+          <i class="fa fa-fw fa-lg fa-check green"></i> {{t 'common.success'}} <small> ({{view.currentJob.durationTime}})</small>
+        {{/if}}
+        {{#if view.currentJob.jobError}}
+          <i class="fa fa-fw fa-lg fa-exclamation red"></i> {{t 'common.error'}}
+        {{/if}}
+        </td>
+        <td>
+          {{#unless isNew}}
+            {{#link-to 'script.history' id}}<i class="fa fa-clock-o"></i> {{t 'common.history'}}{{/link-to}}
+            <a href="#" {{action "copyScript" this}}><i class="fa fa-copy"></i> {{t 'common.copy'}}</a>
+            <a href="#" {{action "deletescript" this}}><i class="fa fa-trash-o"></i> {{t 'common.delete'}}</a>
+          {{/unless}}
+        </td>
+      {{/script-list-row}}
+    {{/each}}
+    </tbody>
+  </table>
+
+  {{#if content}}
+    {{partial 'partials/paginationControls'}}
+  {{/if}}
+
+  {{#unless content}}
+    <div class="alert alert-info" role="alert">{{t 'scripts.noScripts'}}</div>
+  {{/unless}}
+</div>
+
+{{outlet modal}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/udfs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/udfs.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/udfs.hbs
index 473c41d..ff901b6 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/udfs.hbs
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/udfs.hbs
@@ -16,15 +16,12 @@
    limitations under the License.
 }}
 
-<div class="panel panel-default panel-udfs">
-  <div class="panel-heading">
-    <span class="panel-title">
-      {{t 'udfs.udfs'}}
-    </span>
-    <a {{action "createUdfModal"}} class="btn btn-default btn-sm pull-right upload-udf"><span class="glyphicon glyphicon-plus"></span> {{t 'common.create'}}</a>
+<div class="panel-udfs">
+  <div class="title-row">
+    <h3 class="pull-left">{{t 'udfs.udfs'}}</h3>
+    <a {{action "createUdfModal"}} class="btn btn-default pull-right upload-udf"><span class="glyphicon glyphicon-plus"></span> {{t 'udfs.create'}}</a>
   </div>
-  
-  <table class="table table-bordered table-striped">
+  <table class="table table-striped">
     <thead> 
       <tr class="label-row">
         <th class="first">{{t 'common.name'}}</th> 
@@ -34,7 +31,7 @@
       </tr>
     </thead>
     <tbody>
-    {{#each content}}
+    {{#each paginatedContent}}
         <tr> 
           <td> {{this.name}}</td>
           <td> {{this.path}}</td>
@@ -45,7 +42,12 @@
     </tbody>
   </table>
 
+  {{#if content}}
+    {{partial 'partials/paginationControls'}}
+  {{/if}}
+
   {{#unless content}}
-    <div class="panel-footer empty-table-footer">{{t 'udfs.noUDFs'}}</div>
+    <div class="alert alert-info" role="alert">{{t 'udfs.noUDFs'}}</div>
   {{/unless}}
-</div>
+
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert-content.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert-content.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert-content.hbs
deleted file mode 100644
index fed326d..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert-content.hbs
+++ /dev/null
@@ -1,25 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-  <button type="button" class="close" >&times;</button>
-  <p>
-    {{view.content.message}}
-  </p>
-  {{#if view.content.trace}}
-      <a href="#" {{action 'showErrorLog' this}}>{{t 'common.showErrorLog'}}</a>
-  {{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert.hbs
deleted file mode 100644
index 8ee2dfb..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/alert.hbs
+++ /dev/null
@@ -1,21 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<div id="alert-wrap">
-   {{view view.alertsView}}
-</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/pigHelper.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/pigHelper.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/pigHelper.hbs
deleted file mode 100644
index 29b033d..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/pigHelper.hbs
+++ /dev/null
@@ -1,34 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
-  {{t 'editor.pighelper'}}
-  <span class="caret"></span>
-</button>
-<ul class="dropdown-menu" id="pig_helper">
-  {{#each view.helpers}}
-    <li class="dropdown-submenu">
-      <a>{{this.title}}</a>
-      <ul class="dropdown-menu">
-        {{#each this.helpers }}
-          <li><a href="#" {{action 'putToEditor' this target="view" }} >{{this}}</a></li>
-        {{/each}}
-      </ul>
-    </li>
-  {{/each}}
-</ul>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/script-nav.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/script-nav.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/script-nav.hbs
deleted file mode 100644
index 767ad5f..0000000
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/pig/util/script-nav.hbs
+++ /dev/null
@@ -1,30 +0,0 @@
-{{!
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-  
-       http://www.apache.org/licenses/LICENSE-2.0
-  
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-}}
-
-<span class='lb' {{action "gotoSection" view.content }}>
-{{view.content.label}}
-
-{{#unless view.content.label}}
-...     
-{{/unless}} 
-	
-</span>
-  
-{{#if view.content.id}} 
-  <button {{action "close" view.content }}type="button" class="close rm" >&times;</button>
-{{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script.hbs
new file mode 100644
index 0000000..e854fa0
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script.hbs
@@ -0,0 +1,27 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<ul class="nav nav-tabs nav-tabs-script" role="tablist">
+  {{#each tabs}}
+    {{#tab-control tab=name current=controller.activeTab popTab='deactivateJob'  target=target}}
+      {{#link-to url target disabled=view.disabled}}{{label}}{{/link-to}}
+    {{/tab-control}}
+  {{/each}}
+</ul>
+
+{{outlet}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/edit.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/edit.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/edit.hbs
new file mode 100644
index 0000000..95d830b
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/edit.hbs
@@ -0,0 +1,146 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div class="edit-script">
+  <div {{bind-attr class=":panel :panel-editscript scriptError:panel-danger:panel-default"}} >
+    <div class="panel-heading">
+      {{outlet nav}}
+      {{#unless isExec}}
+        <div {{bind-attr class=":btn-group :pull-right isRenaming:hide"}}>
+          <button {{action "execute" content 'execute' }} type="button" class="btn btn-primary">{{t 'editor.execute'}}</button>
+
+          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
+            <span class="caret"></span>
+            <span class="sr-only">Toggle Dropdown</span>
+          </button>
+          <ul class="dropdown-menu" role="menu">
+            <li><a href="#" {{action "execute" content 'explain' }} >{{t 'editor.explain'}}</a></li>
+            <li><a href="#" {{action "execute" content 'syntax_check' }} >{{t 'editor.syntax_check'}}</a></li>
+          </ul>
+        </div>
+        {{else}}
+        <div class="spinner-sm pull-right"></div>
+      {{/unless}}
+      {{#unless isRenaming}}
+
+        <div class="script-title">
+          <h4> {{content.title}} <a href="#" {{action 'rename' 'ask'}} class="btn-rename"><i class="fa fa-pencil"></i></a></h4>
+        </div>
+
+      {{else}}
+        <div  {{bind-attr class=":input-group :input-title titleWarn:has-error"}}>
+          {{input
+            id="title"
+            placeholderTranslation="scripts.modal.script_title_placeholder"
+            class="form-control"
+            valueBinding="content.title"
+          }}
+          <div class="input-group-btn">
+            <button  type="button" {{action 'rename' 'cancel'}} {{bind-attr class=":btn :btn-default :btn-rename-cancel"}} >
+              <i class="fa fa-lg fa-remove"></i> <span class="hidden-xs">{{t 'common.cancel'}}</span>
+            </button>
+          </div>
+          <div class="input-group-btn">
+            <button  type="button" {{action 'rename' 'confirm'}} {{bind-attr class=":btn :btn-success :btn-rename-confirm content.title::disabled"}} >
+              <i class="fa fa-lg fa-check"></i> <span class="hidden-xs">{{t 'editor.save'}}</span>
+            </button>
+          </div>
+        </div>
+      {{/unless}}
+
+    </div>
+    <div class="panel-body" >
+      <div class="pull-left">
+      {{pig-helper class="btn-group" editor=editor}}
+        <div class="btn-group">
+          <button type="button" data-toggle="dropdown" {{bind-attr class=":btn :btn-default :btn-xs :dropdown-toggle ufdsList.length::disabled"}} >
+            {{t 'editor.udfhelper'}}
+            <span class="caret"></span>
+          </button>
+          <ul class="dropdown-menu">
+          {{#each ufdsList}}
+            <li><a href="#" {{action 'insertUdf' this target="view" }}>{{this.name}}</a></li>
+          {{/each}}
+          </ul>
+        </div>
+      </div>
+      <kbd class="file-path pull-right" data-toggle="tooltip" data-placement="bottom"{{translateAttr title="udfs.tooltips.path"}} >
+        {{#unless content.pigScript.isLoaded}}
+          <div class="spinner-sm"></div>
+        {{else}}
+          {{content.pigScript.id}}
+        {{/unless}}
+      </kbd>
+    </div>
+    <div class="editor-container">
+      {{code-mirror id="pig_script" content=content.pigScript codeMirror=editor}}
+      <div class="ui-resizable-handle ui-resizable-s" id="sgrip"><i class="fa fa-ellipsis-h"></i></div>
+    </div>
+  </div>
+
+
+  <div {{bind-attr class=":params-block pigParams::hidden"}}>
+    <div class="block-title">
+      <h4>{{t 'editor.params'}}</h4>
+    </div>
+    <div class="form-inline pigParams">
+    {{#each pigParams}}
+      <div class="form-group">
+        <label class="control-label">{{this.title}}</label>
+        <div class="">
+         {{input class='form-control input-sm' valueBinding='value'}}
+        </div>
+      </div>
+    {{/each}}
+    </div>
+  </div>
+
+  <div class="arguments-block">
+    <div class="block-title">
+      <h4>{{t 'editor.arguments'}}</h4>
+    </div>
+    <div class="row">
+      <div class="col-md-8 ">
+        {{#if argumentsArray}}
+
+        <div class="arguments-wrap">
+          {{#each argumentsArray}}
+            <span class="label label-primary"> <span class="pull-left" >{{this}}</span>  <a href="#" {{action "removeArgument" this}} {{bind-attr class=":close :rm-arg"}}><i class="fa fa-remove"></i></a> </span>
+          {{/each}}
+        </div>
+        {{else}}
+          <div class="alert alert-info" role="alert">
+            {{t 'editor.no_arguments_message'}}
+          </div>
+        {{/if}}
+      </div>
+      <div class="col-md-4 ">
+        <div class="input-group">
+          {{input action="addArgument" placeholderTranslation="editor.pig_argument" class="form-control" valueBinding='tmpArgument'}}
+          <span class="input-group-btn">
+            <button class="btn btn-default pull-right" {{action 'addArgument'}} ><i class="fa fa-plus"></i> {{t 'common.add'}}</button>
+          </span>
+        </div>
+      </div>
+
+    </div>
+  </div>
+
+  {{outlet main}}
+
+</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/history.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/history.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/history.hbs
new file mode 100644
index 0000000..8f0ca34
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/history.hbs
@@ -0,0 +1,61 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+
+<div class="script_history_container">
+  <table class="table table-striped">
+    <thead>
+      <tr>
+          <th>{{t 'common.date'}}</th>
+          <th>{{t 'job.status'}}</th>
+          <th>{{t 'history.duration'}}</th>
+          <th>{{t 'common.actions'}}</th>
+      </tr>
+          <th>{{t 'common.date'}}</th>
+          <th>{{t 'job.status'}}</th>
+          <th>{{t 'history.duration'}}</th>
+          <th>{{t 'common.actions'}}</th>
+      </tr>
+    </thead>
+    <tbody>
+      {{#each paginatedContent}}
+        <tr>
+          <td>{{#link-to 'script.job' id}}{{showDate dateStarted 'YYYY-MM-DD HH:mm'}}{{/link-to}}</td>
+          <td>
+            <h4>
+              <span {{bind-attr class=":label jobSuccess:label-success jobError:label-danger jobInProgress:label-warning "}} class="label label-success">{{status}}</span>
+            </h4>
+          </td>
+          <td>{{#unless jobInProgress}}{{durationTime}}{{/unless}}</td>
+          <td>
+            {{#unless jobInProgress}}
+              <a {{action 'logsPopup' this}} href="#"> <i class="fa fa-file-text-o"></i> {{t 'job.logs'}}</a>
+              <a {{action 'resultsPopup' this}} href="#"> <i class="fa fa-table"></i> {{t 'job.results'}}</a>
+            {{/unless}}
+            <a href="#" {{action 'deleteJob' this}}><i class="fa fa-trash-o"></i> {{t 'common.delete'}}</a>
+          </td>
+        </tr>
+      {{/each}}
+    </tbody>
+  </table>
+</div>
+{{#unless content}}
+  <div class="alert alert-info" role="alert">{{t 'scripts.no_jobs_message'}}</div>
+{{/unless}}
+{{#if content}}
+  {{partial 'partials/paginationControls'}}
+{{/if}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/job.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/job.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/job.hbs
new file mode 100644
index 0000000..bf406a9
--- /dev/null
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/script/job.hbs
@@ -0,0 +1,153 @@
+{{!
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+}}
+<div class="job-container">
+  <h3>
+    {{title}} - <span {{bind-attr class=":label jobSuccess:label-success jobError:label-danger jobInProgress:label-warning "}}>{{status}}</span>
+  </h3>
+
+    <div class="row">
+
+      <div {{bind-attr class="needsPing:col-md-10:col-md-12 :progress-wrap" }} >
+        {{job-progress job=content}}
+      </div>
+      {{#if needsPing}}
+        <div class="col-md-2">
+          {{#unless isKilling}}
+            <button {{action "killjob" content}} type="button" class="btn btn-block btn-danger btn-sm kill-button"><i class="fa fa-times"></i> {{t 'job.kill_job'}}</button>
+          {{/unless}}
+          {{#if isKilling}}
+            <div class="spinner-sm pull-left kill-button"></div>
+          {{/if}}
+        </div>
+      {{/if}}
+    </div>
+
+  <table class="table job-info">
+    <tbody>
+      <tr>
+        <td>{{t 'job.jobId'}}</td>
+        <td>{{jobId}}</td>
+      </tr>
+      <tr>
+        <td>{{t 'job.started'}}</td>
+        <td>{{showDate dateStarted 'YYYY-MM-DD HH:mm'}}</td>
+      </tr>
+    </tbody>
+  </table>
+
+  {{#unless jobInProgress}}
+    <div class="panel panel-default">
+      <div class="panel-heading">
+        <h4 class="panel-title">
+          <a data-toggle="collapse" href="#scriptResults">
+            <i class="toggle-icon fa fa-fw fa-chevron-right"></i>
+            {{t 'job.results'}}
+          </a>
+          {{#if jobResults.isFulfilled }}
+          <p class="pull-right" ><a href="#" {{action 'download' 'results'}}><i class="fa fa-download"></i> {{t 'common.download'}}</a></p>
+          {{/if}}
+        </h4>
+      </div>
+      {{#view "view.collapsePanel" id="scriptResults" class="panel-collapse collapse" }}
+        <div class="panel-body">
+        {{#if jobResults.isPending}}
+          <pre><div class="spinner-sm"></div></pre>
+        {{else}}
+          {{#if jobResults.isFulfilled }}
+          <pre>{{jobResults.content.fileContent}}</pre>
+          {{/if}}
+          {{#if jobResults.isRejected}}
+            {{jobResults.reason}}
+          {{/if}}
+        {{/if}}
+        </div>
+      {{/view}}
+    </div>
+
+    <div class="panel panel-default">
+      <div class="panel-heading">
+        <h4 class="panel-title">
+          <a data-toggle="collapse" href="#scriptLogs">
+            <i class="toggle-icon fa fa-fw fa-chevron-right"></i>
+            {{t 'job.logs'}}
+          </a>
+          {{#if jobLogs.isFulfilled}}
+          <p class="pull-right" ><a href="#" {{action 'download' 'logs'}}><i class="fa fa-download"></i> {{t 'common.download'}}</a></p>
+          {{/if}}
+        </h4>
+      </div>
+      {{#view "view.collapsePanel" id="scriptLogs" class="panel-collapse collapse"}}
+        <div class="panel-body">
+        {{#if jobLogs.isPending}}
+          <pre><div class="spinner-sm"></div></pre>
+        {{else}}
+          {{#if jobLogs.isFulfilled}}
+          <pre>{{jobLogs.content.fileContent}}</pre>
+          {{/if}}
+          {{#if jobLogs.isRejected}}
+            {{jobLogs.reason}}
+          {{/if}}
+        {{/if}}
+        </div>
+      {{/view}}
+    </div>
+  {{/unless}}
+
+    <div class="panel panel-default">
+      <div class="panel-heading">
+        <h4 class="panel-title">
+          <a data-toggle="collapse" href="#scriptDetails">
+            <i class="toggle-icon fa fa-fw fa-chevron-right fa-rotate-90"></i>
+            {{t 'job.script_details'}}
+          </a>
+        </h4>
+      </div>
+      {{#view "view.collapsePanel" id="scriptDetails" class="panel-collapse collapse in" }}
+        <div class="panel-body body-title">
+          {{t 'job.script_contents'}}:
+        </div>
+          {{#if scriptContents.isPending}}
+            <div class="panel-body">
+              <div class="spinner-sm"></div>
+            </div>
+          {{else}}
+            {{#if scriptContents.isFulfilled}}
+              <div class="editor-container">
+                {{code-mirror id="pig_script" content=scriptContents readOnly=true}}
+                <div class="ui-resizable-handle ui-resizable-s" id="sgrip"><i class="fa fa-ellipsis-h"></i></div>
+              </div>
+            {{else}}
+              {{#if scriptContents.isRejected}}
+                <div class="alert alert-danger" role="alert">
+                 {{scriptContents.reason}}
+                </div>
+              {{/if}}
+            {{/if}}
+          {{/if}}
+        <div class="panel-body body-title">
+          {{t 'common.arguments'}}:
+        </div>
+        <div class="panel-body arguments-wrap">
+          {{#each argumentsArray}}
+            <span class="label label-primary">{{this}}</span>
+          {{/each}}
+        </div>
+      {{/view}}
+    </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/splash.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/splash.hbs b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/splash.hbs
index 73fdaef..7455a4f 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/splash.hbs
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/templates/splash.hbs
@@ -17,8 +17,8 @@
 }}
 
 <div class="container-fluid">
-  <h1>Welcome to Apache Pig UI</h1>
-  <h2>Please wait while we test connection to services</h2>
+  <h1>{{t 'splash.welcome'}}</h1>
+  <h2>{{t 'splash.please_wait'}}</h2>
 
   <div class="progress progress-striped active">
     <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" {{bind-attr style="progressBarStyle"}}>
@@ -39,37 +39,37 @@
             <span class="glyphicon glyphicon-arrow-right"></span>
           {{/if}}
         </td>
-        <td>Storage test</td>
+        <td>{{t 'splash.storage_test'}}</td>
       </tr>
 
       <tr>
-          <td>
-            {{#if hdfsTestDone}}
-              {{#if hdfsTest}}
-                  <span class="glyphicon glyphicon-ok green"></span>
-              {{else}}
-                  <span class="glyphicon glyphicon-remove red"></span>
-              {{/if}}
+        <td>
+          {{#if hdfsTestDone}}
+            {{#if hdfsTest}}
+              <span class="glyphicon glyphicon-ok green"></span>
             {{else}}
-                <span class="glyphicon glyphicon-arrow-right"></span>
+              <span class="glyphicon glyphicon-remove red"></span>
             {{/if}}
-          </td>
-          <td>HDFS test</td>
+          {{else}}
+            <span class="glyphicon glyphicon-arrow-right"></span>
+          {{/if}}
+        </td>
+        <td>{{t 'splash.hdfs_test'}}</td>
       </tr>
 
       <tr>
-          <td>
-            {{#if webhcatTestDone}}
-              {{#if webhcatTest}}
-                  <span class="glyphicon glyphicon-ok green"></span>
-              {{else}}
-                  <span class="glyphicon glyphicon-remove red"></span>
-              {{/if}}
+        <td>
+          {{#if webhcatTestDone}}
+            {{#if webhcatTest}}
+                <span class="glyphicon glyphicon-ok green"></span>
             {{else}}
-                <span class="glyphicon glyphicon-arrow-right"></span>
+                <span class="glyphicon glyphicon-remove red"></span>
             {{/if}}
-          </td>
-          <td>WebHCat test</td>
+          {{else}}
+              <span class="glyphicon glyphicon-arrow-right"></span>
+          {{/if}}
+        </td>
+        <td>{{t 'splash.webhcat_test'}}</td>
       </tr>
 
     </tbody>
@@ -80,17 +80,17 @@
   <p>{{{errors}}}</p>
   {{/if}}
   {{#if stackTrace}}
-      <a href="#" {{action "toggleStackTrace" post}}>
-        {{#if isExpanded}}
-            <span class="glyphicon glyphicon-collapse-down"></span> Collapse Stack Trace
-        {{else}}
-            <span class="glyphicon glyphicon-expand"></span> Expand Stack Trace
-        {{/if}}
-      </a>
+    <a href="#" {{action "toggleStackTrace" post}}>
+      {{#if isExpanded}}
+          <span class="glyphicon glyphicon-collapse-down"></span> Collapse Stack Trace
+      {{else}}
+          <span class="glyphicon glyphicon-expand"></span> Expand Stack Trace
+      {{/if}}
+    </a>
     {{#if isExpanded}}
-        <pre class="prettyprint">
-{{stackTrace}}
-        </pre>
+      <pre class="prettyprint">
+        {{stackTrace}}
+      </pre>
     {{/if}}
   {{/if}}
 </div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/82e72e51/contrib/views/pig/src/main/resources/ui/pig-web/app/translations.js
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/app/translations.js b/contrib/views/pig/src/main/resources/ui/pig-web/app/translations.js
index f59102b..e1bb083 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/app/translations.js
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/app/translations.js
@@ -24,28 +24,47 @@ Ember.I18n.translations = {
     'name':"Name",
     'path':"Path",
     'owner':"Owner",
+    'save':"Save",
     'delete':"Delete",
     'created':"Created",
-    'created':"Created",
     'history':"History",
     'clone':"Clone",
     'cancel':"Cancel",
+    'discard_changes':"Discard changes",
     'arguments':"Arguments",
     'errorLog':"Stack Trace",
-    'showErrorLog':"Show Stack Trace"
+    'showErrorLog':"Show Stack Trace",
+    'warning':"Warning",
+    'close':"Close",
+    'download':"Download",
+    'show':'Show:',
+    'actions':'Actions',
+    'date':'Date',
+    'success':'Success',
+    'error':'Error',
+    'copy':'Copy'
   },
   'scripts':{
+    'script':"Script",
     'scripts':"Scripts",
     'newscript': "New Script",
     'title': "Name",
     'path': "Script HDFS Location (optional)",
-    'noScripts': "No scripts to display",
+    'not_run_message': "Not run",
+    'noScripts': "No pig scripts have been created. To get started, click New Script.",
+    'last_executed':'Last Executed',
+    'last_results':'Last Results',
+    'no_jobs_message':'This script has not been executed',
     'modal':{
       'create_script':'New Script',
+      'unsaved_changes_warning':'You have unsaved changes in script.',
       'script_title_placeholder': 'Script name',
       'file_path_placeholder':'Full path to script file',
       'file_path_hint':'Leave empty to create file automatically.',
-      'file_path_hint':'Leave empty to create file automatically.',
+      'copy_created_massage':'{{title}} created successfully.',
+      'copy_created':'Copy Created',
+      'continue_editing':'Continue Editing',
+      'go_to_copy':'Go to Copy',
 
       'error_empty_title':'Title can not be empty!',
 
@@ -63,14 +82,19 @@ Ember.I18n.translations = {
       'delete_failed':'Delete failed!',
       'save_error':'Error while saving script',
       'save_error_reason':'{{message}}',
-    },
+      'rename_unfinished':'Please rename script first.'
+    }
   },
   'editor':{
     'title_updated':'Title updated.',
     'pig_argument':'Pig argument',
     'pighelper':'PIG helper',
     'udfhelper':'UDF helper',
+    'actions':'Actions',
     'save':'Save',
+    'params':'Params',
+    'arguments':'Arguments',
+    'no_arguments_message':'This pig script has no arguments defined.',
     'execute':'Execute',
     'explain':'Explain',
     'syntax_check':'Syntax check'
@@ -82,8 +106,12 @@ Ember.I18n.translations = {
     'logs':'Logs',
     'job_status':'Job status: ',
     'status':'Status',
-    'started':'Date started',
+    'jobId':'Job ID',
+    'started':'Started',
     'noJobs': "No jobs to display",
+    'kill_job': "Kill job",
+    'script_details': "Script Details",
+    'script_contents': "Script contents",
     'alert':{
       'job_started' :'Job started!',
       'job_killed' :'{{title}} job killed!',
@@ -93,6 +121,9 @@ Ember.I18n.translations = {
       'stdout_error' :'Error loading STDOUT. \n Status: {{status}} Message: {{message}}',
       'stderr_error' :'Error loading STDERR. \n Status: {{status}} Message: {{message}}',
       'exit_error' :'Error loading EXITCODE. \n Status: {{status}} Message: {{message}}',
+      'promise_error' :'Error loading file. \n Status: {{status}} Message: {{message}}',
+      'job_deleted' :'Job deleted successfully',
+      'delete_filed' :'Failed to delete job'
     },
     'job_results':{
       'stdout':'Stdout',
@@ -100,25 +131,41 @@ Ember.I18n.translations = {
       'exitcode':'Exit code',
       'stdout_loading':'Loading stdout...',
       'stderr_loading':'Loading stderr...',
-      'exitcode_loading':'Loading exitcode...',
+      'exitcode_loading':'Loading exitcode...'
     },
+    'modal':{
+      'confirm_delete_massage':'Are you sure you want to delete {{title}} job?'
+    }
   },
   'udfs':{
     'udfs':'UDFs',
+    'create':'Create UDF',
     'tooltips':{
-      'path':'Path of this script file on HDFS',
+      'path':'Path of this script file on HDFS'
     },
     'noUDFs': "No UDFs to display",
     'alert':{
       'udf_created':'{{name}} created!',
       'udf_deleted':'{{name}} deleted!',
       'create_failed':'Failed to create UDF!',
-      'delete_failed':'Delete failed!',
+      'delete_failed':'Delete failed!'
     },
     'modal':{
       'create_udf':'Create UDF',
       'udf_name':'UDF name',
-      'hdfs_path':'HDFS path',
+      'hdfs_path':'HDFS path'
     }
+  },
+  'history':{
+    'duration':'Duration',
+    'no_jobs_message':'No jobs was run',
+    'load_error':'Error loading pig history.'
+  },
+  'splash':{
+    'welcome':'Welcome to Apache Pig UI',
+    'please_wait':'Please wait while we test connection to services',
+    'storage_test':'Storage test',
+    'hdfs_test':'HDFS test',
+    'webhcat_test':'WebHCat test'
   }
 };


Mime
View raw message