angular .module('portainer') .directive('rdHeaderTitle', ['$rootScope', function rdHeaderTitle($rootScope) { var directive = { requires: '^rdHeader', scope: { title: '@' }, link: function (scope, iElement, iAttrs) { scope.username = $rootScope.username; }, transclude: true, template: '
{{title}} {{username}}
', restrict: 'E' }; return directive; }]);