YARN-8271. [UI2] Improve labeling of certain tables. Contributed by Yesha Vora.

(cherry picked from commit 89d0b87ad3)
This commit is contained in:
Sunil G 2018-05-14 20:59:31 +05:30
parent e5281d9f8b
commit e6c607cc2c
9 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@ export default Ember.Controller.extend({
text: "Home", text: "Home",
routeName: 'application' routeName: 'application'
}, { }, {
text: "Yarn Tools", text: "YARN Tools",
routeName: 'yarn-tools', routeName: 'yarn-tools',
}], }],
}); });

View File

@ -56,11 +56,11 @@ export default Ember.Helper.helper(function(params,hash) {
html = html + ' class="active"'; html = html + ' class="active"';
} }
html = html + '><a href="#/yarn-node-apps/' + hash.nodeId + '/' + hash.nodeAddr + html = html + '><a href="#/yarn-node-apps/' + hash.nodeId + '/' + hash.nodeAddr +
'">List of Applications</a></li><li'; '">List of Applications on this Node</a></li><li';
if (hash.path === 'yarn-node-containers') { if (hash.path === 'yarn-node-containers') {
html = html + ' class="active"'; html = html + ' class="active"';
} }
html = html + '><a href="#/yarn-node-containers/' +hash.nodeId + '/' + hash.nodeAddr + html = html + '><a href="#/yarn-node-containers/' +hash.nodeId + '/' + hash.nodeAddr +
'">List of Containers</a></li></ul></ul></div>'; '">List of Containers on this Node</a></li></ul></ul></div>';
return Ember.String.htmlSafe(html); return Ember.String.htmlSafe(html);
}); });

View File

@ -58,7 +58,7 @@
<div class="col-lg-4 container-fluid"> <div class="col-lg-4 container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Finished Apps Finished Apps From All Users
</div> </div>
<div class="container-fluid" id="finishedapps-donut-chart"> <div class="container-fluid" id="finishedapps-donut-chart">
{{donut-chart data=model.clusterMetrics.firstObject.getFinishedAppsDataForDonutChart {{donut-chart data=model.clusterMetrics.firstObject.getFinishedAppsDataForDonutChart
@ -74,7 +74,7 @@
<div class="col-lg-4 container-fluid"> <div class="col-lg-4 container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Running Apps Running Apps From All Users
</div> </div>
<div class="container-fluid" id="runningapps-donut-chart"> <div class="container-fluid" id="runningapps-donut-chart">
{{donut-chart data=model.clusterMetrics.firstObject.getRunningAppsDataForDonutChart {{donut-chart data=model.clusterMetrics.firstObject.getRunningAppsDataForDonutChart

View File

@ -29,11 +29,11 @@
{{/link-to}} {{/link-to}}
{{/link-to}} {{/link-to}}
{{#link-to 'yarn-node-apps' tagName="li"}} {{#link-to 'yarn-node-apps' tagName="li"}}
{{#link-to 'yarn-node-apps' nodeId encodedAddr}}List of Applications {{#link-to 'yarn-node-apps' nodeId encodedAddr}}List of Applications on this Node
{{/link-to}} {{/link-to}}
{{/link-to}} {{/link-to}}
{{#link-to 'yarn-node-containers' tagName="li"}} {{#link-to 'yarn-node-containers' tagName="li"}}
{{#link-to 'yarn-node-containers' nodeId encodedAddr}}List of Containers {{#link-to 'yarn-node-containers' nodeId encodedAddr}}List of Containers on this Node
{{/link-to}} {{/link-to}}
{{/link-to}} {{/link-to}}
{{#if (and nmGpuInfo nmGpuInfo.info.totalGpuDevices)}} {{#if (and nmGpuInfo nmGpuInfo.info.totalGpuDevices)}}

View File

@ -20,7 +20,7 @@
<div class="col-lg-6"> <div class="col-lg-6">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Running Apps: {{model.selected}} Running Apps From All Users: {{model.selected}}
</div> </div>
<div id="numapplications-donut-chart"> <div id="numapplications-donut-chart">
{{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData {{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData

View File

@ -35,7 +35,7 @@
{{yarn-queue-partition-capacity-labels partitionMap=model.selectedQueue.partitionMap queue=model.selectedQueue filteredPartition=filteredPartition}} {{yarn-queue-partition-capacity-labels partitionMap=model.selectedQueue.partitionMap queue=model.selectedQueue filteredPartition=filteredPartition}}
</div> </div>
<h5> Running Apps </h5> <h5> Running Apps From All Users in Queue </h5>
<div id="numapplications-donut-chart"> <div id="numapplications-donut-chart">
{{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData {{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData
showLabels=true showLabels=true

View File

@ -51,7 +51,7 @@
<div class="col-lg-6 container-fluid"> <div class="col-lg-6 container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Running Apps: {{model.selected}} Running Apps From All Users: {{model.selected}}
</div> </div>
<div class="container-fluid" id="numapplications-donut-chart"> <div class="container-fluid" id="numapplications-donut-chart">
{{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData {{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData

View File

@ -50,7 +50,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Running Apps: {{model.selected}} Running Apps From All Users: {{model.selected}}
</div> </div>
<div class="container-fluid" id="numapplications-donut-chart"> <div class="container-fluid" id="numapplications-donut-chart">
{{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData {{donut-chart data=model.selectedQueue.numOfApplicationsDonutChartData

View File

@ -67,7 +67,7 @@
<div class="col-lg-4 container-fluid"> <div class="col-lg-4 container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Finished Apps Finished Apps From All Users
</div> </div>
<div class="container-fluid" id="finishedapps-donut-chart"> <div class="container-fluid" id="finishedapps-donut-chart">
{{donut-chart data=model.clusterMetrics.firstObject.getFinishedAppsDataForDonutChart {{donut-chart data=model.clusterMetrics.firstObject.getFinishedAppsDataForDonutChart
@ -84,7 +84,7 @@
<div class="col-lg-4 container-fluid"> <div class="col-lg-4 container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Running Apps Running Apps From All Users
</div> </div>
<div class="container-fluid" id="runningapps-donut-chart"> <div class="container-fluid" id="runningapps-donut-chart">
{{donut-chart data=model.clusterMetrics.firstObject.getRunningAppsDataForDonutChart {{donut-chart data=model.clusterMetrics.firstObject.getRunningAppsDataForDonutChart