ux(): updated navbar on all pages to new style, no subnav/dropdown yet though

This commit is contained in:
Torkel Ödegaard
2016-02-13 14:32:20 +01:00
parent f98dbd249e
commit f7e3297a0f
18 changed files with 35 additions and 120 deletions

View File

@@ -10,15 +10,13 @@
</a>
</div>
<span ng-if="ctrl.title">
<span class="icon-circle top-nav-icon">
<div class="top-nav-btn dashnav-dashboards-btn" ng-if="ctrl.title">
<a class="pointer" href="{{ctrl.titleUrl}}">
<i ng-class="ctrl.icon"></i>
</span>
<a ng-href="{{ctrl.titleUrl}}" class="top-nav-title">
{{ctrl.title}}
<span class="dashboard-title">{{ctrl.title}}</span>
<!-- <i class="fa fa&#45;caret&#45;down"></i> -->
</a>
<i ng-show="ctrl.subnav" class="top-nav-breadcrumb-icon fa fa-angle-right"></i>
</span>
</div>
<div ng-transclude></div>
</div>

View File

@@ -17,15 +17,14 @@ export function navbarDirective() {
templateUrl: 'public/app/core/components/navbar/navbar.html',
controller: NavbarCtrl,
bindToController: true,
controllerAs: 'ctrl',
transclude: true,
controllerAs: 'ctrl',
scope: {
title: "@",
titleUrl: "@",
},
link: function(scope, elem, attrs, ctrl) {
ctrl.icon = attrs.icon;
ctrl.subnav = attrs.subnav;
}
};
}