mirror of https://github.com/portainer/portainer
Added header directive and updated breadcrumb in each view (#8)
parent
20bfca97e0
commit
791e069a4c
@ -0,0 +1,11 @@
|
||||
angular
|
||||
.module('uifordocker')
|
||||
.directive('rdHeaderContent', function rdHeaderContent() {
|
||||
var directive = {
|
||||
requires: '^rdHeader',
|
||||
transclude: true,
|
||||
template: '<div class="breadcrumb-links" ng-transclude></div>',
|
||||
restrict: 'E'
|
||||
};
|
||||
return directive;
|
||||
});
|
@ -0,0 +1,14 @@
|
||||
angular
|
||||
.module('uifordocker')
|
||||
.directive('rdHeaderTitle', function rdHeaderTitle() {
|
||||
var directive = {
|
||||
requires: '^rdHeader',
|
||||
scope: {
|
||||
title: '@',
|
||||
},
|
||||
transclude: true,
|
||||
template: '<div class="page">{{title}}</div>',
|
||||
restrict: 'E'
|
||||
};
|
||||
return directive;
|
||||
});
|
@ -0,0 +1,13 @@
|
||||
angular
|
||||
.module('uifordocker')
|
||||
.directive('rdHeader', function rdHeader() {
|
||||
var directive = {
|
||||
scope: {
|
||||
"ngModel": "="
|
||||
},
|
||||
transclude: true,
|
||||
template: '<div class="row header"><div class="col-xs-12"><div class="meta" ng-transclude></div></div></div>',
|
||||
restrict: 'EA'
|
||||
};
|
||||
return directive;
|
||||
});
|
Loading…
Reference in new issue