1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

adding refresh button for jobs page, and capitlized Hosts in the pie chart tool tip on homepage

This commit is contained in:
Jared Tabor 2014-07-17 10:13:49 -04:00
parent 7d0e8c85eb
commit 985eaa70d0
4 changed files with 12 additions and 5 deletions

View File

@ -188,12 +188,12 @@ function JobsListController ($log, $scope, $compile, $routeParams, ClearScope, B
pageSize: max_rows
});
/*$scope.refreshJobs = function() {
$scope.refreshJobs = function() {
queued_scope.search('queued_job');
running_scope.search('running_job');
completed_scope.search('completed_job');
scheduled_scope.search('schedule');
};*/
};
$(window).resize(_.debounce(function() {
resizeContainers();

View File

@ -64,7 +64,7 @@ angular.module('HostPieChartWidget', ['RestServices', 'Utilities'])
.showLabels(true)
.labelThreshold(0.01)
.tooltipContent(function(x, y) {
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y) + ' hosts ' + '</p>';
return '<b>'+x+'</b>'+ '<p>' + Math.floor(y) + ' Hosts ' + '</p>';
})
.color(['#00aa00', '#aa0000']);

View File

@ -63,7 +63,6 @@
}
#dashboard-tab-content table{
margin-bottom: 10px;
}
@ -81,7 +80,7 @@
}
}
#container4{
#dash-jobs-list{
padding-bottom: 15px;
}

View File

@ -3,6 +3,14 @@
<div class="row">
<div class="col-md-12" id="breadcrumbs"></div>
</div>
<div id="refresh-row" class="row">
<div class="col-lg-12">
<div id="home-list-actions" class="list-actions pull-right">
<button type="button" class="btn btn-xs btn-primary ng-hide" ng-click="refreshJobs()" id="refresh_btn" aw-tool-tip="Refresh the page" data-placement="top" ng-show="socketStatus == 'error'" data-original-title="" title=""><i class="fa fa-refresh fa-lg"></i> </button></div>
</div>
</div>
<div class="row">
<div class="col-lg-6 left-side">
<div class="jobs-list-container completed">