mirror of
https://github.com/ansible/awx.git
synced 2026-07-05 05:18:02 -02:30
First pass at Job Hosts Summary page. Added link to host detail page. Need to add link to job->host->events.
This commit is contained in:
@@ -15,7 +15,7 @@ angular.module('CredentialsListDefinition', [])
|
||||
selectTitle: 'Add Credentials',
|
||||
editTitle: 'Credentials',
|
||||
selectInstructions: 'Check the Select checkbox next to each credential to be added, and click Finished when done. Use the green <i class=\"icon-plus\"></i> button to create a new user.',
|
||||
editInstructions: 'Add a new credential record from either the Teams tab or the Users tab. Teams and Users each have an associated set of Credentials.',
|
||||
editInstructions: 'Create a new credential from either the Teams tab or the Users tab. Teams and Users each have an associated set of Credentials.',
|
||||
index: true,
|
||||
index: true,
|
||||
|
||||
|
||||
62
ansibleworks/ui/static/js/lists/JobHosts.js
Normal file
62
ansibleworks/ui/static/js/lists/JobHosts.js
Normal file
@@ -0,0 +1,62 @@
|
||||
/*********************************************
|
||||
* Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
*
|
||||
* JobHosts.js
|
||||
* List view object for Job Host Summary data model.
|
||||
*
|
||||
*
|
||||
*/
|
||||
angular.module('JobHostDefinition', [])
|
||||
.value(
|
||||
'JobHostList', {
|
||||
|
||||
name: 'jobhosts',
|
||||
iterator: 'jobhost',
|
||||
editTitle: 'Job Host Summary',
|
||||
index: true,
|
||||
hover: true,
|
||||
|
||||
fields: {
|
||||
host: {
|
||||
label: 'Host',
|
||||
key: true,
|
||||
sourceModel: 'host',
|
||||
sourceField: 'name',
|
||||
ngBind: 'jobhost.host_name',
|
||||
//linkTo: '/hosts/\{\{ jobhost.host \}\}'
|
||||
ngClick:"viewHost(\{\{ jobhost.host \}\})"
|
||||
},
|
||||
changed: {
|
||||
label: 'Changed',
|
||||
searchType: 'math'
|
||||
},
|
||||
dark: {
|
||||
label: 'Dark',
|
||||
searchType: 'math'
|
||||
},
|
||||
failures: {
|
||||
label: 'Failures',
|
||||
searchType: 'math'
|
||||
},
|
||||
ok: {
|
||||
label: 'OK',
|
||||
searchType: 'math'
|
||||
},
|
||||
processed: {
|
||||
label: 'Processed',
|
||||
searchType: 'math'
|
||||
},
|
||||
skipped: {
|
||||
label: 'Skipped',
|
||||
searchType: 'math'
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
}
|
||||
|
||||
});
|
||||
@@ -67,7 +67,7 @@ angular.module('JobsListDefinition', [])
|
||||
summary: {
|
||||
title: 'Summary',
|
||||
icon: 'icon-filter',
|
||||
ngClick: 'viewSummary(\{{ job.id \}\})',
|
||||
ngClick: "viewSummary(\{{ job.id \}\}, '\{\{ job.name \}\}')",
|
||||
class: 'btn-success btn-mini',
|
||||
awToolTip: 'View host summary',
|
||||
ngDisabled: "job.status == 'new'"
|
||||
@@ -88,7 +88,7 @@ angular.module('JobsListDefinition', [])
|
||||
ngClick: 'deleteJob(\{\{ job.id \}\})',
|
||||
class: 'btn-danger btn-mini',
|
||||
awToolTip: 'Cancel job',
|
||||
ngDisabled: "job.status == 'error' || job.status == 'failed' || job.status == 'success'"
|
||||
ngDisabled: "job.status != 'new' && job.status != 'pending'"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user