mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Dropped in custom breadcrumb template - I think we will need this for styling purposes.
This commit is contained in:
committed by
Jared Tabor
parent
aad2c86752
commit
ae145affe6
@@ -197,8 +197,12 @@ var tower = angular.module('Tower', [
|
|||||||
.config(['$pendolyticsProvider', function($pendolyticsProvider) {
|
.config(['$pendolyticsProvider', function($pendolyticsProvider) {
|
||||||
$pendolyticsProvider.doNotAutoStart();
|
$pendolyticsProvider.doNotAutoStart();
|
||||||
}])
|
}])
|
||||||
.config(['$stateProvider', '$urlRouterProvider',
|
.config(['$stateProvider', '$urlRouterProvider', '$breadcrumbProvider',
|
||||||
function ($stateProvider, $urlRouterProvider) {
|
function ($stateProvider, $urlRouterProvider, $breadcrumbProvider) {
|
||||||
|
|
||||||
|
$breadcrumbProvider.setOptions({
|
||||||
|
templateUrl: urlPrefix + 'partials/breadcrumb.html'
|
||||||
|
});
|
||||||
|
|
||||||
$urlRouterProvider.otherwise("/home");
|
$urlRouterProvider.otherwise("/home");
|
||||||
|
|
||||||
|
|||||||
8
awx/ui/client/src/partials/breadcrumb.html
Normal file
8
awx/ui/client/src/partials/breadcrumb.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<ol class="breadcrumb">
|
||||||
|
<li ng-repeat="step in steps | limitTo:(steps.length-1)">
|
||||||
|
<a href="{{step.ncyBreadcrumbLink}}" ng-bind-html="step.ncyBreadcrumbLabel"></a>
|
||||||
|
</li>
|
||||||
|
<li ng-repeat="step in steps | limitTo:-1" class="active">
|
||||||
|
<span ng-bind-html="step.ncyBreadcrumbLabel"></span>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
Reference in New Issue
Block a user