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