mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
job details UX items, resolves #2045
This commit is contained in:
@@ -934,7 +934,7 @@ export default
|
|||||||
graph_data.push({
|
graph_data.push({
|
||||||
label: 'OK',
|
label: 'OK',
|
||||||
value: count.ok.length,
|
value: count.ok.length,
|
||||||
color: '#60D66F'
|
color: '#5CB85C'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (count.changed.length > 0) {
|
if (count.changed.length > 0) {
|
||||||
@@ -982,15 +982,16 @@ export default
|
|||||||
return d.label +': '+ Math.round((d.value/total)*100) + "%";
|
return d.label +': '+ Math.round((d.value/total)*100) + "%";
|
||||||
})
|
})
|
||||||
.y(function(d) { return d.value; })
|
.y(function(d) { return d.value; })
|
||||||
.showLabels(true)
|
.showLabels(false)
|
||||||
.showLegend(false)
|
.showLegend(true)
|
||||||
.growOnHover(false)
|
.growOnHover(false)
|
||||||
.labelThreshold(0.01)
|
.labelThreshold(0.01)
|
||||||
.tooltipContent(function(x, y) {
|
.tooltipContent(function(x, y) {
|
||||||
return '<p>'+x+'</p>'+ '<p>' + Math.floor(y.replace(',','')) + ' HOSTS ' + '</p>';
|
return '<p>'+x+'</p>'+ '<p>' + Math.floor(y.replace(',','')) + ' HOSTS ' + '</p>';
|
||||||
})
|
})
|
||||||
.color(colors);
|
.color(colors);
|
||||||
|
job_detail_chart.legend.rightAlign(false);
|
||||||
|
job_detail_chart.legend.margin({top: 5, right: 450, left:0, bottom: 0});
|
||||||
d3.select(element.find('svg')[0])
|
d3.select(element.find('svg')[0])
|
||||||
.datum(dataset)
|
.datum(dataset)
|
||||||
.transition().duration(350)
|
.transition().duration(350)
|
||||||
@@ -1000,19 +1001,15 @@ export default
|
|||||||
"font-style": "normal",
|
"font-style": "normal",
|
||||||
"font-weight":400,
|
"font-weight":400,
|
||||||
"src": "url(/static/assets/OpenSans-Regular.ttf)",
|
"src": "url(/static/assets/OpenSans-Regular.ttf)",
|
||||||
"width": 500,
|
"width": 600,
|
||||||
"height": 300,
|
"height": 300,
|
||||||
|
"color": '#848992'
|
||||||
});
|
});
|
||||||
|
d3.select(element.find(".nv-noData")[0])
|
||||||
d3.select(element.find(".nv-label text")[0])
|
|
||||||
.attr("class", "HostSummary-graph--successful")
|
|
||||||
.style({
|
.style({
|
||||||
"font-family": 'Open Sans',
|
"text-anchor": 'start'
|
||||||
"font-size": "16px",
|
|
||||||
"text-transform" : "uppercase",
|
|
||||||
"fill" : colors[0],
|
|
||||||
"src": "url(/static/assets/OpenSans-Regular.ttf)"
|
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
d3.select(element.find(".nv-label text")[1])
|
d3.select(element.find(".nv-label text")[1])
|
||||||
.attr("class", "HostSummary-graph--changed")
|
.attr("class", "HostSummary-graph--changed")
|
||||||
.style({
|
.style({
|
||||||
@@ -1040,6 +1037,7 @@ export default
|
|||||||
"fill" : colors[3],
|
"fill" : colors[3],
|
||||||
"src": "url(/static/assets/OpenSans-Regular.ttf)"
|
"src": "url(/static/assets/OpenSans-Regular.ttf)"
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
return job_detail_chart;
|
return job_detail_chart;
|
||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<div id="hosts-summary-section" class="section">
|
<div id="hosts-summary-section" class="section">
|
||||||
<div class="JobDetail-instructions"><span class="badge">4</span> Please select a host below to view a summary of all associated tasks.</div>
|
<div class="JobDetail-instructions" ng-hide="hosts.length == 0"><span class="badge">4</span> Please select a host below to view a summary of all associated tasks.</div>
|
||||||
<div class="JobDetail-searchHeaderRow" ng-hide="hosts.length == 0">
|
<div class="JobDetail-searchHeaderRow" ng-hide="hosts.length == 0">
|
||||||
<div class="JobDetail-searchContainer form-group">
|
<div class="JobDetail-searchContainer form-group">
|
||||||
<div class="search-name">
|
<div class="search-name">
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="hosts-summary-table" class="table-detail" lr-infinite-scroll="getNextPage" scroll-threshold="10" time-threshold="500">
|
<div id="hosts-summary-table" class="table-detail" lr-infinite-scroll="getNextPage" scroll-threshold="10" time-threshold="500" ng-hide="hosts.length == 0">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="List-tableRow" ng-repeat="host in hosts track by $index" id="{{ host.id }}" ng-class-even="'List-tableRow--evenRow'" ng-class-odd="'List-tableRow--oddRow'">
|
<tr class="List-tableRow" ng-repeat="host in hosts track by $index" id="{{ host.id }}" ng-class-even="'List-tableRow--evenRow'" ng-class-odd="'List-tableRow--oddRow'">
|
||||||
|
|||||||
@@ -152,7 +152,20 @@
|
|||||||
border: 1px solid @default-link;
|
border: 1px solid @default-link;
|
||||||
color: @default-bg;
|
color: @default-bg;
|
||||||
}
|
}
|
||||||
|
.JobDetail .nvd3.nv-noData{
|
||||||
|
color: @default-interface-txt;
|
||||||
|
font-size: 12px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
}
|
||||||
|
.JobDetail .nv-series{
|
||||||
|
padding-right: 30px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.JobDetail-instructions .badge{
|
||||||
|
background-color: @default-list-header-bg;
|
||||||
|
color: @default-interface-txt;
|
||||||
|
}
|
||||||
.JobDetail-tableToggle--left{
|
.JobDetail-tableToggle--left{
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
border-bottom-left-radius: 5px;
|
border-bottom-left-radius: 5px;
|
||||||
@@ -196,6 +209,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.JobDetail-stdoutActionButton--active{
|
.JobDetail-stdoutActionButton--active{
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
flex:none;
|
flex:none;
|
||||||
width:0px;
|
width:0px;
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
|
|
||||||
<div id="job-detail-details">
|
<div id="job-detail-details">
|
||||||
<div id="play-section">
|
<div id="play-section">
|
||||||
<div class="JobDetail-instructions"><span class="badge">1</span> Please select from a play below to view its associated tasks.</div>
|
<div class="JobDetail-instructions"><span class="badge">1.</span> Please select from a play below to view its associated tasks.</div>
|
||||||
<div class="JobDetail-searchHeaderRow">
|
<div class="JobDetail-searchHeaderRow">
|
||||||
<div class="JobDetail-searchContainer form-group">
|
<div class="JobDetail-searchContainer form-group">
|
||||||
<div class="search-name">
|
<div class="search-name">
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
<!-- end of plays section of details-->
|
<!-- end of plays section of details-->
|
||||||
|
|
||||||
<div id="task-section" class="section JobDetail-tasks" >
|
<div id="task-section" class="section JobDetail-tasks" >
|
||||||
<div class="JobDetail-instructions"><span class="badge">2</span> Please select a task below to view its associated hosts</div>
|
<div class="JobDetail-instructions"><span class="badge">2.</span> Please select a task below to view its associated hosts</div>
|
||||||
<div class="JobDetail-searchHeaderRow">
|
<div class="JobDetail-searchHeaderRow">
|
||||||
<div class="JobDetail-searchContainer form-group">
|
<div class="JobDetail-searchContainer form-group">
|
||||||
<div class="search-name">
|
<div class="search-name">
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
<!--end of tasks section of details-->
|
<!--end of tasks section of details-->
|
||||||
|
|
||||||
<div id="task-hosts-section" class="section">
|
<div id="task-hosts-section" class="section">
|
||||||
<div class="JobDetail-instructions"><span class="badge">3</span> Please select a host below to view associated task details.</div>
|
<div class="JobDetail-instructions"><span class="badge">3.</span> Please select a host below to view associated task details.</div>
|
||||||
<div class="JobDetail-searchHeaderRow">
|
<div class="JobDetail-searchHeaderRow">
|
||||||
<div class="JobDetail-searchContainer form-group">
|
<div class="JobDetail-searchContainer form-group">
|
||||||
<div class="search-name">
|
<div class="search-name">
|
||||||
|
|||||||
Reference in New Issue
Block a user