mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 13:55:04 -02: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:
@@ -19,7 +19,8 @@ angular.module('JobFormDefinition', [])
|
|||||||
navigationLinks: {
|
navigationLinks: {
|
||||||
details: {
|
details: {
|
||||||
href: "/#/jobs/{{ job_id }}",
|
href: "/#/jobs/{{ job_id }}",
|
||||||
label: 'Details',
|
label: "\{\{ job_id + '- ' + name \}\}",
|
||||||
|
listLabel: 'Job Details',
|
||||||
icon: 'icon-zoom-in',
|
icon: 'icon-zoom-in',
|
||||||
active: true,
|
active: true,
|
||||||
ngShow: "job_id !== null"
|
ngShow: "job_id !== null"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ angular.module('JobEventsListDefinition', [])
|
|||||||
navigationLinks: {
|
navigationLinks: {
|
||||||
details: {
|
details: {
|
||||||
href: "/#/jobs/{{ job_id }}",
|
href: "/#/jobs/{{ job_id }}",
|
||||||
label: 'Details',
|
label: 'Job Details',
|
||||||
icon: 'icon-zoom-in',
|
icon: 'icon-zoom-in',
|
||||||
ngShow: "job_id !== null"
|
ngShow: "job_id !== null"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ angular.module('JobHostDefinition', [])
|
|||||||
navigationLinks: {
|
navigationLinks: {
|
||||||
details: {
|
details: {
|
||||||
href: "/#/jobs/{{ job_id }}",
|
href: "/#/jobs/{{ job_id }}",
|
||||||
label: 'Details',
|
label: 'Job Details',
|
||||||
icon: 'icon-zoom-in',
|
icon: 'icon-zoom-in',
|
||||||
ngShow: "job_id !== null"
|
ngShow: "job_id !== null"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -871,7 +871,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
|
|||||||
navigation[itm].href + "\" ";
|
navigation[itm].href + "\" ";
|
||||||
html += (navigation[itm].active) ? "class=\"active\" " : "";
|
html += (navigation[itm].active) ? "class=\"active\" " : "";
|
||||||
html += ">";
|
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 += (navigation[itm].active) ? " <i class=\"icon-angle-left\"></i>" : "";
|
||||||
html += "</a></li>\n";
|
html += "</a></li>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user