Browse Source

AMBARI-4808 Client-only Services should not show all Services commands in UI 2. (ababiichuk)

aBabiichuk 11 years ago
parent
commit
77de4b96ce

+ 23 - 0
ambari-web/app/templates/main/service/info/summary/pig.hbs

@@ -0,0 +1,23 @@
+{{!
+* 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.
+}}
+<tr>
+  <td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.pig.client}}</a></td>
+  <td>
+    <span class="green-live">{{view.clients.length}} </span>{{pluralize view.clients.length singular="t:services.pig.client" plural="t:services.pig.clients"}} {{t common.installed}}
+  </td>
+</tr>

+ 23 - 0
ambari-web/app/templates/main/service/info/summary/sqoop.hbs

@@ -0,0 +1,23 @@
+{{!
+* 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.
+}}
+<tr>
+  <td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.sqoop.client}}</a></td>
+  <td>
+    <span class="green-live">{{view.clients.length}} </span>{{pluralize view.clients.length singular="t:services.sqoop.client" plural="t:services.sqoop.clients"}} {{t common.installed}}
+  </td>
+</tr>

+ 5 - 4
ambari-web/app/templates/main/service/info/summary/tez.hbs

@@ -15,8 +15,9 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 }}
-<td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.tez.client}}</a></td>
-<td>
-  <span class="green-live">{{view.clients.length}} </span>{{pluralize view.clients.length singular="t:services.tez.client" plural="t:services.tez.clients"}} {{t common.installed}}
-</td>
+<tr>
+  <td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.tez.client}}</a></td>
+  <td>
+    <span class="green-live">{{view.clients.length}} </span>{{pluralize view.clients.length singular="t:services.tez.client" plural="t:services.tez.clients"}} {{t common.installed}}
+  </td>
 </tr>

+ 5 - 4
ambari-web/app/templates/main/service/info/summary/zookeeper.hbs

@@ -19,8 +19,9 @@
 
 
 {{view view.sumMasterComponentView}}
-<td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.zookeeper.client}}</a></td>
-  <td>
-    <span class="green-live">{{view.clients.length}} </span>{{t services.zookeeper.client}}{{#if view.hasManyClients}}s{{/if}} {{t common.installed}}
-  </td>
+<tr>
+  <td class="summary-label"><a {{action filterHosts view.clientObj}} href="javascript:void(null)" >{{t services.zookeeper.client}}</a></td>
+    <td>
+      <span class="green-live">{{view.clients.length}} </span>{{t services.zookeeper.client}}{{#if view.hasManyClients}}s{{/if}} {{t common.installed}}
+    </td>
 </tr>