2014-07-18 17:45:08 +00:00
|
|
|
<span class="entity-search-element" ng-class="autoClear ? '' : 'persistent'"><input class="entity-search-control form-control">
|
|
|
|
<span class="entity-reference block-reference" ng-show="!autoClear && currentEntityInternal" entity="currentEntityInternal"></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>
|
2015-04-23 16:12:54 +00:00
|
|
|
<ul class="dropdown-menu entity-menu" ng-class="pullRight == 'true' ? 'pull-right': ''" role="menu"
|
|
|
|
aria-labelledby="entityDropdownMenu">
|
2015-03-30 21:55:04 +00:00
|
|
|
<li ng-show="lazyLoading" style="padding: 10px"><div class="cor-loader"></div></li>
|
2014-02-25 17:32:56 +00:00
|
|
|
|
|
|
|
<li role="presentation" class="dropdown-header" ng-show="!lazyLoading && !robots && !isAdmin && !teams">
|
|
|
|
You do not have permission to manage teams and robots for this organization
|
|
|
|
</li>
|
2014-07-18 20:51:05 +00:00
|
|
|
|
2015-03-30 21:55:04 +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="includeRobots && !lazyLoading && isAdmin">
|
|
|
|
<a role="menuitem" class="new-action" tabindex="-1" href="javascript:void(0)" ng-click="createRobot()">
|
2015-04-23 20:41:47 +00:00
|
|
|
<i class="fa ci-robot"></i>
|
2015-03-30 21:55:04 +00:00
|
|
|
Create robot account
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li role="presentation" class="divider" ng-show="!lazyLoading && robots && isAdmin"></li>
|
|
|
|
|
2014-07-18 20:51:05 +00:00
|
|
|
<li role="presentation" class="dropdown-header"
|
|
|
|
ng-show="!lazyLoading && !teams.length && !robots.length && !((includeTeams && isOrganization && isAdmin) || (includeRobots && isAdmin))">
|
|
|
|
<span ng-if="includeRobots && includeTeams && isOrganization">
|
|
|
|
No robot accounts or teams found
|
|
|
|
</span>
|
|
|
|
<span ng-if="!includeRobots && includeTeams && isOrganization">
|
|
|
|
No teams found
|
|
|
|
</span>
|
|
|
|
<span ng-if="includeRobots && !includeTeams && isOrganization">
|
|
|
|
No robot accounts found
|
|
|
|
</span>
|
|
|
|
<span ng-if="!includeRobots && !includeTeams && isOrganization">
|
|
|
|
Robot accounts and teams are not permitted
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span ng-if="includeRobots && !isOrganization">
|
|
|
|
No robot accounts found
|
|
|
|
</span>
|
|
|
|
<span ng-if="!includeRobots && !isOrganization">
|
|
|
|
Robot accounts are not permitted
|
|
|
|
</span>
|
|
|
|
</li>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-03-30 21:55:04 +00:00
|
|
|
<li role="presentation" class="dropdown-header" ng-show="!lazyLoading && teams">Teams</li>
|
|
|
|
|
2015-04-23 17:20:03 +00:00
|
|
|
<li class="menuitem" role="presentation" ng-repeat="team in teams | orderBy: 'name'" ng-show="!lazyLoading"
|
2015-03-30 21:55:04 +00:00
|
|
|
ng-click="setEntity(team.name, 'team', false, team.avatar)">
|
2013-12-10 06:38:05 +00:00
|
|
|
<a role="menuitem" tabindex="-1" href="javascript:void(0)">
|
2015-06-29 09:33:00 +00:00
|
|
|
<span class="avatar" data="team.avatar" size="16"></span> <span>{{ team.name }}</span>
|
2013-12-10 06:38:05 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2013-12-10 20:49:34 +00:00
|
|
|
<li role="presentation" class="divider" ng-show="!lazyLoading && teams && (isAdmin || robots)"></li>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-03-30 21:55:04 +00:00
|
|
|
<li role="presentation" class="dropdown-header" ng-show="!lazyLoading && robots">Robot Accounts</li>
|
|
|
|
|
2015-04-23 17:20:03 +00:00
|
|
|
<li class="menuitem" role="presentation" ng-repeat="robot in robots | orderBy:'name'" ng-show="!lazyLoading">
|
2013-12-10 06:38:05 +00:00
|
|
|
<a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-click="setEntity(robot.name, 'user', true)">
|
2015-04-23 20:41:47 +00:00
|
|
|
<i class="fa ci-robot"></i> <span>{{ robot.name }}</span>
|
2014-11-24 21:07:38 +00:00
|
|
|
</a>
|
2013-12-10 06:38:05 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</span>
|