mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
Applied same navigation/drop-down changes to jobs that we applied to inventory.
This commit is contained in:
@@ -275,7 +275,8 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
|
||||
Rest.get({ params: {id: id} })
|
||||
.success( function(data, status, headers, config) {
|
||||
|
||||
LoadBreadCrumbs({ path: '/job_templates/' + id, title: data.id + ' - ' + data.summary_fields.job_template.name });
|
||||
//LoadBreadCrumbs({ path: '/jobs/' + id, title: data.id + ' - ' + data.summary_fields.job_template.name });
|
||||
LoadBreadCrumbs();
|
||||
|
||||
for (var fld in form.fields) {
|
||||
if (fld != 'variables' && data[fld] !== null && data[fld] !== undefined) {
|
||||
|
||||
@@ -15,9 +15,15 @@ angular.module('JobFormDefinition', [])
|
||||
name: 'jobs',
|
||||
well: true,
|
||||
twoColumns: true,
|
||||
|
||||
|
||||
navigationLinks: {
|
||||
details: {
|
||||
href: "/#/jobs/{{ job_id }}",
|
||||
label: 'Details',
|
||||
icon: 'icon-zoom-in',
|
||||
active: true,
|
||||
ngShow: "job_id !== null"
|
||||
},
|
||||
hosts: {
|
||||
href: "/#/jobs/{{ job_id }}/job_host_summaries",
|
||||
label: 'Hosts',
|
||||
@@ -30,7 +36,6 @@ angular.module('JobFormDefinition', [])
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
label: 'Job Template',
|
||||
|
||||
@@ -22,12 +22,19 @@ angular.module('JobEventsListDefinition', [])
|
||||
details: {
|
||||
href: "/#/jobs/{{ job_id }}",
|
||||
label: 'Details',
|
||||
icon: 'icon-zoom-in'
|
||||
icon: 'icon-zoom-in',
|
||||
ngShow: "job_id !== null"
|
||||
},
|
||||
summary: {
|
||||
hosts: {
|
||||
href: "/#/jobs/{{ job_id }}/job_host_summaries",
|
||||
label: 'Hosts',
|
||||
icon: 'icon-laptop'
|
||||
},
|
||||
events: {
|
||||
href: "/#/jobs/{{ job_id }}/job_events",
|
||||
label: 'Events',
|
||||
active: true,
|
||||
icon: 'icon-list-ul'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -23,11 +23,16 @@ angular.module('JobHostDefinition', [])
|
||||
icon: 'icon-zoom-in',
|
||||
ngShow: "job_id !== null"
|
||||
},
|
||||
hosts: {
|
||||
href: "/#/jobs/{{ job_id }}/job_host_summaries",
|
||||
label: 'Hosts',
|
||||
active: true,
|
||||
icon: 'icon-laptop'
|
||||
},
|
||||
events: {
|
||||
href: "/#/jobs/{{ job_id }}/job_events",
|
||||
label: 'Events',
|
||||
icon: 'icon-list-ul',
|
||||
ngShow: "job_id !== null"
|
||||
icon: 'icon-list-ul'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ angular.module('JobsListDefinition', [])
|
||||
type: 'DropDown',
|
||||
label: 'View',
|
||||
icon: 'icon-zoom-in',
|
||||
'class': 'btn-xs',
|
||||
'class': 'btn-default btn-xs',
|
||||
options: [
|
||||
{ ngClick: "viewSummary(\{{ job.id \}\}, '\{\{ job.summary_fields.job_template.name \}\}')", label: 'Host Summary',
|
||||
ngHide: "job.status == 'new'" },
|
||||
|
||||
Reference in New Issue
Block a user