mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02:30
Removed old breadcrumb references
This commit is contained in:
@@ -352,77 +352,6 @@ angular.module('GeneratorHelpers', [systemStatus.name])
|
||||
}
|
||||
])
|
||||
|
||||
.factory('Breadcrumbs', ['$rootScope', 'Attr',
|
||||
function ($rootScope, Attr) {
|
||||
return function (params) {
|
||||
|
||||
// Generate breadcrumbs using the list-generator.js method.
|
||||
|
||||
var list = params.list || {},
|
||||
mode = params.mode,
|
||||
title = params.title,
|
||||
html = '', itm, navigation;
|
||||
|
||||
html += "<ul class=\"ansible-breadcrumb\" id=\"breadcrumb-list\">\n";
|
||||
html += "<li ng-repeat=\"crumb in breadcrumbs\"><a href=\"{{ '#' + crumb.path }}\">{{ crumb.title }}</a></li>\n";
|
||||
|
||||
if (list.navigationLinks) {
|
||||
navigation = list.navigationLinks;
|
||||
if (navigation.ngHide) {
|
||||
html += "<li class=\"active\" ng-show=\"" + navigation.ngHide + "\">";
|
||||
html += list.editTitle;
|
||||
html += "</li>\n";
|
||||
html += "<li class=\"active\" ng-hide=\"" + navigation.ngHide + "\"> </li>\n";
|
||||
} else {
|
||||
html += "<li class=\"active\"> </li>\n";
|
||||
html += "</ul>\n";
|
||||
}
|
||||
html += "<div class=\"dropdown\" ";
|
||||
html += (navigation.ngHide) ? Attr(navigation, 'ngHide') : '';
|
||||
html += ">\n";
|
||||
for (itm in navigation) {
|
||||
if (typeof navigation[itm] === 'object' && navigation[itm].active) {
|
||||
html += "<a href=\"\" class=\"toggle\" ";
|
||||
html += "data-toggle=\"dropdown\" ";
|
||||
html += ">" + navigation[itm].label + " <i class=\"fa fa-chevron-circle-down crumb-icon\"></i></a>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
html += "<ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
for (itm in navigation) {
|
||||
if (typeof navigation[itm] === 'object') {
|
||||
html += "<li role=\"presentation\"><a role=\"menuitem\" tabindex=\"-1\" href=\"" +
|
||||
navigation[itm].href + "\" ";
|
||||
// html += (navigation[itm].active) ? "class=\"active\" " : "";
|
||||
html += ">";
|
||||
html += "<i class=\"fa fa-check\" style=\"visibility: ";
|
||||
html += (navigation[itm].active) ? "visible" : "hidden";
|
||||
html += "\"></i> ";
|
||||
html += navigation[itm].label;
|
||||
html += "</a></li>\n";
|
||||
}
|
||||
}
|
||||
html += "</ul>\n";
|
||||
html += "</div><!-- dropdown -->\n";
|
||||
} else {
|
||||
html += "<li class=\"active\"><a href=\"\">";
|
||||
// Support usage without a mode by just passing a title option
|
||||
if (title) {
|
||||
html += title;
|
||||
} else if (mode === 'select') {
|
||||
html += list.selectTitle;
|
||||
} else {
|
||||
html += list.editTitle;
|
||||
}
|
||||
html += "</a></li>\n</ul>\n";
|
||||
}
|
||||
|
||||
return html;
|
||||
|
||||
};
|
||||
}
|
||||
])
|
||||
|
||||
// List field with multiple icons
|
||||
.factory('BuildLink', ['Attr', 'Icon', function(Attr, Icon){
|
||||
return function(params) {
|
||||
|
||||
Reference in New Issue
Block a user