mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fixed breadcrumbs on Job detail page. Breadcrumb title for an item can now be different from the active menu name, allowing in this case the breadcrumb to job_id and job_name while the menu shows 'Job detail'.
This commit is contained in:
parent
93e53034c1
commit
1a590c6cf6
@ -19,7 +19,8 @@ angular.module('JobFormDefinition', [])
|
||||
navigationLinks: {
|
||||
details: {
|
||||
href: "/#/jobs/{{ job_id }}",
|
||||
label: 'Details',
|
||||
label: "\{\{ job_id + '- ' + name \}\}",
|
||||
listLabel: 'Job Details',
|
||||
icon: 'icon-zoom-in',
|
||||
active: true,
|
||||
ngShow: "job_id !== null"
|
||||
|
||||
@ -21,7 +21,7 @@ angular.module('JobEventsListDefinition', [])
|
||||
navigationLinks: {
|
||||
details: {
|
||||
href: "/#/jobs/{{ job_id }}",
|
||||
label: 'Details',
|
||||
label: 'Job Details',
|
||||
icon: 'icon-zoom-in',
|
||||
ngShow: "job_id !== null"
|
||||
},
|
||||
|
||||
@ -19,7 +19,7 @@ angular.module('JobHostDefinition', [])
|
||||
navigationLinks: {
|
||||
details: {
|
||||
href: "/#/jobs/{{ job_id }}",
|
||||
label: 'Details',
|
||||
label: 'Job Details',
|
||||
icon: 'icon-zoom-in',
|
||||
ngShow: "job_id !== null"
|
||||
},
|
||||
|
||||
@ -871,7 +871,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
|
||||
navigation[itm].href + "\" ";
|
||||
html += (navigation[itm].active) ? "class=\"active\" " : "";
|
||||
html += ">";
|
||||
html += navigation[itm].label;
|
||||
html += (navigation[itm].listLabel) ? navigation[itm].listLabel : navigation[itm].label;
|
||||
html += (navigation[itm].active) ? " <i class=\"icon-angle-left\"></i>" : "";
|
||||
html += "</a></li>\n";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user