mirror of https://github.com/portainer/portainer
16 lines
467 B
JavaScript
16 lines
467 B
JavaScript
|
angular
|
||
|
.module('uifordocker')
|
||
|
.directive('rdWidgetHeader', function rdWidgetTitle() {
|
||
|
var directive = {
|
||
|
requires: '^rdWidget',
|
||
|
scope: {
|
||
|
title: '@',
|
||
|
icon: '@'
|
||
|
},
|
||
|
transclude: true,
|
||
|
template: '<div class="widget-header"><div class="row"><div class="pull-left"><i class="fa" ng-class="icon"></i> {{title}} </div><div class="pull-right col-xs-6 col-sm-4" ng-transclude></div></div></div>',
|
||
|
restrict: 'E'
|
||
|
};
|
||
|
return directive;
|
||
|
});
|