<div class="page white-space-normal">
  {{ $ctrl.titleText }}
  <span class="header_title_content" ng-transclude></span>
</div>

<span class="pull-right myaccount-container" uib-dropdown on-toggle="toggled(open)">
  <a href class="myaccount-dropdown" uib-dropdown-toggle>
    <span class="pull-right user-box" ng-if="$ctrl.username">
      <i class="fa fa-user-circle" aria-hidden="true"></i> {{ $ctrl.username }} <i class="fa fa-angle-down myaccount-icon" aria-hidden="true"></i>
    </span>
  </a>
  <ul class="dropdown-menu" uib-dropdown-menu>
    <li>
      <a ui-sref="portainer.account">My account</a>
    </li>
    <li>
      <a ui-sref="portainer.logout({performApiLogout: true})" data-cy="template-logoutButton">Log out</a>
    </li>
  </ul>
</span>
