mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
adding badge for indicating a job was launched by a workflow
on the jobs list and the job results page
This commit is contained in:
@@ -2222,3 +2222,18 @@ a:hover {
|
|||||||
.modal-body .alert {
|
.modal-body .alert {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.WorkflowBadge{
|
||||||
|
background-color: @b7grey;
|
||||||
|
border-radius: 10px;
|
||||||
|
color: @default-bg;
|
||||||
|
display: inline-block;
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: x-small;
|
||||||
|
height: 14px;
|
||||||
|
margin-left: 5px;
|
||||||
|
padding-left: 2px;
|
||||||
|
width: 14px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -97,6 +97,15 @@
|
|||||||
data-placement="top">
|
data-placement="top">
|
||||||
{{ job.summary_fields.job_template.name }}
|
{{ job.summary_fields.job_template.name }}
|
||||||
</a>
|
</a>
|
||||||
|
<a href="{{ workflow_result_link }}"
|
||||||
|
aw-tool-tip="View workflow results"
|
||||||
|
data-placement="top"
|
||||||
|
data-original-title="" title="">
|
||||||
|
<i class="WorkflowBadge"
|
||||||
|
ng-show="job.launch_type === 'workflow' ">
|
||||||
|
W
|
||||||
|
</i>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,17 @@ export default
|
|||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-lg-2 col-md-3 col-sm-4 col-xs-6',
|
columnClass: 'col-lg-2 col-md-3 col-sm-4 col-xs-6',
|
||||||
ngClick: "viewJobDetails(job)",
|
ngClick: "viewJobDetails(job)",
|
||||||
|
badgePlacement: 'right',
|
||||||
|
badgeCustom: true,
|
||||||
|
badgeIcon: `<a href="{{ workflow_result_link }}"
|
||||||
|
aw-tool-tip="View workflow results"
|
||||||
|
data-placement="top"
|
||||||
|
data-original-title="" title="">
|
||||||
|
<i class="WorkflowBadge"
|
||||||
|
ng-show="job.launch_type === 'workflow' ">
|
||||||
|
W
|
||||||
|
</i>
|
||||||
|
</a>`
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
label: 'Type',
|
label: 'Type',
|
||||||
|
|||||||
@@ -327,7 +327,11 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
|||||||
}
|
}
|
||||||
html += "\n";
|
html += "\n";
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else if(field.badgeCustom === true){
|
||||||
|
html += field.badgeIcon;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (field.badgeToolTip) {
|
if (field.badgeToolTip) {
|
||||||
html += "<a ";
|
html += "<a ";
|
||||||
html += (field.badgeNgHref) ? "ng-href=\"" + field.badgeNgHref + "\" " : "href=\"\"";
|
html += (field.badgeNgHref) ? "ng-href=\"" + field.badgeNgHref + "\" " : "href=\"\"";
|
||||||
|
|||||||
Reference in New Issue
Block a user