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