bigbluebutton-Github/labs/meteor-client/app/client/views/users/user_item.html

71 lines
3.0 KiB
HTML
Raw Normal View History

<template name="displayUserIcons">
2014-12-02 04:49:20 +08:00
{{#if isUserSharingVideo userId}}
<span class="userListSettingIcon glyphicon glyphicon-facetime-video" rel="tooltip" data-placement="bottom" title="{{user.name}} is sharing their webcam"></span>
{{/if}}
2014-12-02 04:49:20 +08:00
{{#if isUserSharingAudio userId}}
{{#if isCurrentUser userId}}
{{#if isUserMuted userId}}
<span class="muteIcon userListSettingIcon glyphicon glyphicon-volume-off" rel="tooltip" data-placement="bottom" title="Unmute yourself"></span>
{{else}}
{{#if isCurrentUserTalking}}
<span class="muteIcon userListSettingIcon glyphicon glyphicon-volume-up" rel="tooltip" data-placement="bottom" title="is talking"></span>
{{else}}
<span class="muteIcon userListSettingIcon glyphicon glyphicon-volume-down" rel="tooltip" data-placement="bottom" title="is not talking"></span>
{{/if}}
2014-12-02 04:49:20 +08:00
{{/if}}
{{else}}
{{#if isUserMuted userId}}
<span class="userListSettingIcon glyphicon glyphicon-volume-off" rel="tooltip" data-placement="bottom" title="{{user.name}} is muted"></span>
{{else}}
{{#if isUserTalking userId}}
<span class="userListSettingIcon glyphicon glyphicon-volume-up" rel="tooltip" data-placement="bottom" title="{{user.name}} is talking"></span>
{{else}}
2014-12-02 04:49:20 +08:00
<span class="userListSettingIcon glyphicon glyphicon-volume-down" rel="tooltip" data-placement="bottom" title="{{user.name}} is not talking"></span>
{{/if}}
2014-12-02 04:49:20 +08:00
{{/if}}
{{/if}}
{{/if}}
2014-12-02 04:49:20 +08:00
{{#if isUserListenOnly userId}}
<span class="userListSettingIcon glyphicon glyphicon-headphones" title="Listening only"></span>
{{/if}}
{{#if user.presenter}}
<span class="userListSettingIcon glyphicon glyphicon-picture" rel="tooltip" data-placement="bottom" title="{{user.name}} is the presenter"></span>
{{else}}
{{#if equals user.role "MODERATOR"}}
<span class="userListSettingIcon glyphicon glyphicon-user" rel="tooltip" data-placement="bottom" title="{{user.name}} is a moderator"></span>
{{/if}}
{{/if}}
{{#if user.raise_hand}}
{{#if isCurrentUser userId}}
<span class="raisedHandIcon userListSettingIcon glyphicon glyphicon-hand-up" rel="tooltip" data-placement="bottom" title="Lower your hand"></span>
{{else}}
<span class="userListSettingIcon glyphicon glyphicon-hand-up" rel="tooltip" data-placement="bottom" title="{{user.name}} has raised their hand"></span>
{{/if}}
{{/if}}
2014-08-09 00:04:04 +08:00
</template>
<template name="usernameEntry">
2014-12-02 04:59:39 +08:00
{{#if isCurrentUser userId}}
<span class="userCurrent userNameEntry" rel="tooltip" data-placement="bottom" title="{{user.name}} (you)">
{{user.name}} (you)
</span>
{{else}}
<span class="userNameEntry" rel="tooltip" data-placement="bottom" title="{{user.name}}">
{{user.name}}
</span>
{{/if}}
2014-08-09 00:04:04 +08:00
</template>
<template name="userItem">
2014-11-29 07:39:02 +08:00
<div id="username">
{{> usernameEntry}}
2014-11-29 07:39:02 +08:00
</div>
<div id="usericons">
{{> displayUserIcons}}
2014-11-29 07:39:02 +08:00
</div>
2014-08-09 00:04:04 +08:00
</template>