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:
chouseknecht 2013-09-20 17:30:09 -04:00
parent 93e53034c1
commit 1a590c6cf6
4 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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