2014-01-21 20:09:47 +00:00
|
|
|
<span class="entity-search-element" ng-class="isPersistent ? 'persistent' : ''"><input class="entity-search-control form-control">
|
|
|
|
<span class="entity-icon" ng-show="isPersistent">
|
|
|
|
<i class="fa fa-user" ng-show="currentEntity.kind == 'user' && !currentEntity.is_robot" title="User"
|
|
|
|
bs-tooltip="tooltip.title" data-container="body"></i>
|
|
|
|
<i class="fa fa-wrench" ng-show="currentEntity.kind == 'user' && currentEntity.is_robot" title="Robot Account"
|
|
|
|
bs-tooltip="tooltip.title" data-container="body"></i>
|
|
|
|
<i class="fa fa-group" ng-show="currentEntity.kind == 'team'" title="Team"
|
|
|
|
bs-tooltip="tooltip.title" data-container="body"></i>
|
|
|
|
</span>
|
2013-12-10 06:38:05 +00:00
|
|
|
<div class="dropdown">
|
|
|
|
<button class="btn btn-default dropdown-toggle" type="button" id="entityDropdownMenu" data-toggle="dropdown"
|
|
|
|
ng-click="lazyLoad()">
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="entityDropdownMenu">
|
2013-12-18 03:56:28 +00:00
|
|
|
<li ng-show="lazyLoading" style="padding: 10px"><div class="quay-spinner"></div></li>
|
2013-12-10 06:38:05 +00:00
|
|
|
|
|
|
|
<li role="presentation" ng-repeat="team in teams" ng-show="!lazyLoading"
|
|
|
|
ng-click="setEntity(team.name, 'team', false)">
|
|
|
|
<a role="menuitem" tabindex="-1" href="javascript:void(0)">
|
|
|
|
<i class="fa fa-group"></i> <span>{{ team.name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2013-12-10 20:49:34 +00:00
|
|
|
<li role="presentation" class="divider" ng-show="!lazyLoading && teams && (isAdmin || robots)"></li>
|
2013-12-10 06:38:05 +00:00
|
|
|
|
|
|
|
<li role="presentation" ng-repeat="robot in robots" ng-show="!lazyLoading">
|
|
|
|
<a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-click="setEntity(robot.name, 'user', true)">
|
|
|
|
<i class="fa fa-wrench"></i> <span>{{ robot.name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2013-12-10 20:49:34 +00:00
|
|
|
<li role="presentation" class="divider" ng-show="!lazyLoading && robots && isAdmin"></li>
|
|
|
|
|
2013-12-10 06:38:05 +00:00
|
|
|
<li role="presentation" ng-show="includeTeams && isOrganization && !lazyLoading && isAdmin">
|
|
|
|
<a role="menuitem" class="new-action" tabindex="-1" href="javascript:void(0)" ng-click="createTeam()">
|
|
|
|
<i class="fa fa-group"></i> Create team
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li role="presentation" ng-show="!lazyLoading && isAdmin">
|
|
|
|
<a role="menuitem" class="new-action" tabindex="-1" href="javascript:void(0)" ng-click="createRobot()">
|
|
|
|
<i class="fa fa-wrench"></i>
|
|
|
|
Create robot account
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</span>
|