OpenSlides/openslides/core/static/templates/projector-button.html

28 lines
1.3 KiB
HTML
Raw Normal View History

2016-09-12 11:05:34 +02:00
<div class="btn-group" style="min-width:{{ projectors.length > 1 ? '54' : '34' }}px;" uib-dropdown
uib-tooltip="{{ 'Projector' | translate }} {{ model.isProjected(arg)[0] || '' }}"
tooltip-enable="model.isProjected(arg).length"
2016-09-12 11:05:34 +02:00
os-perms="core.can_manage_projector">
<button type="button" class="btn btn-default btn-sm"
ng-click="model.project(defaultProjectorId, arg)"
ng-class="{ 'btn-primary': inArray(model.isProjected(arg), defaultProjectorId) }">
2016-09-12 11:05:34 +02:00
<i class="fa fa-video-camera"></i>
{{ content }}
</button>
<button type="button" class="btn btn-default btn-sm slimDropDown"
ng-class="{ 'btn-primary': (model.isProjected(arg).length && !inArray(model.isProjected(arg), defaultProjectorId)) }"
2016-09-12 11:05:34 +02:00
ng-if="projectors.length > 1"
uib-dropdown-toggle>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" ng-if="projectors.length > 1">
2016-09-12 11:05:34 +02:00
<li role="menuitem" ng-repeat="projector in projectors">
<a href="" ng-click="model.project(projector.id, arg)"
ng-class="{ 'projected': inArray(model.isProjected(arg), projector.id) }">
<i class="fa fa-video-camera" ng-show="inArray(model.isProjected(arg), projector.id)"></i>
{{ projector.name | translate }}
<span ng-if="defaultProjectorId == projector.id">(<translate>Default</translate>)</span>
2016-09-12 11:05:34 +02:00
</a>
</li>
</ul>
</div>