71 lines
3.0 KiB
HTML
Executable File
71 lines
3.0 KiB
HTML
Executable File
|
|
|
|
<template name="displayUserIcons">
|
|
{{#if isUserSharingVideo userId}}
|
|
<span class="userListSettingIcon glyphicon glyphicon-facetime-video" rel="tooltip" data-placement="bottom" title="{{user.name}} is sharing their webcam"></span>
|
|
{{/if}}
|
|
|
|
{{#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}}
|
|
{{/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}}
|
|
<span class="userListSettingIcon glyphicon glyphicon-volume-down" rel="tooltip" data-placement="bottom" title="{{user.name}} is not talking"></span>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#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 ion-android-hand" rel="tooltip" data-placement="bottom" title="Lower your hand"></span>
|
|
{{else}}
|
|
<span class="userListSettingIcon ion-android-hand" rel="tooltip" data-placement="bottom" title="{{user.name}} has raised their hand"></span>
|
|
{{/if}}
|
|
{{/if}}
|
|
</template>
|
|
|
|
<template name="usernameEntry">
|
|
{{#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}}
|
|
</template>
|
|
|
|
<template name="userItem">
|
|
{{> usernameEntry}}
|
|
<div id="usericons">
|
|
{{> displayUserIcons}}
|
|
</div>
|
|
</template>
|