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:
chouseknecht
2013-05-22 17:53:35 -04:00
parent 45a4ba7743
commit 34994a6736
15 changed files with 160 additions and 16 deletions

View File

@@ -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,

View 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: {
}
});

View File

@@ -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'"
}
}
});