mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(): updated navbar on all pages to new style, no subnav/dropdown yet though
This commit is contained in:
@@ -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-caret-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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user