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

73 lines
3.1 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-11-29 07:39:02 +08:00
<span class="userNameContainer">
2014-11-20 07:20:34 +08:00
{{#if isCurrentUser userId}}
2014-11-29 07:39:02 +08:00
<span class="userCurrent userNameEntry" rel="tooltip" data-placement="bottom" title="{{user.name}} (you)">
2014-11-29 05:56:27 +08:00
{{user.name}} (you)
2014-11-29 07:39:02 +08:00
</span>
{{else}}
2014-11-29 07:39:02 +08:00
<span class="userNameEntry" rel="tooltip" data-placement="bottom" title="{{user.name}}">
{{user.name}}
2014-11-29 07:39:02 +08:00
</span>
{{/if}}
2014-11-29 07:39:02 +08:00
</span>
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>