2014-08-18 20:54:12 +08:00
|
|
|
<template name="displayUserIcons">
|
2015-05-07 12:14:17 +08:00
|
|
|
<!-- audio, video, locking, presenter/moderator, hand raised -->
|
2015-04-14 21:34:41 +08:00
|
|
|
{{#if isUserInAudio userId}}
|
2015-04-06 22:29:25 +08:00
|
|
|
<!-- if the user is listen only, only display the one icon -->
|
2015-04-14 21:34:41 +08:00
|
|
|
{{#if isUserListenOnlyAudio userId}}
|
2015-05-07 12:14:17 +08:00
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is only listening">
|
2015-05-15 00:56:41 +08:00
|
|
|
<i class="icon fi-volume-none usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2015-04-03 00:04:51 +08:00
|
|
|
{{else}}
|
|
|
|
{{#if isCurrentUser userId}}
|
|
|
|
{{#if isUserMuted userId}}
|
2015-06-05 06:25:07 +08:00
|
|
|
<span class="muteIcon" rel="tooltip" data-placement="bottom" title="Unmute yourself">
|
2015-05-07 12:53:29 +08:00
|
|
|
<i class="ion-ios-mic-off usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2014-12-02 04:49:20 +08:00
|
|
|
{{else}}
|
2015-04-03 00:04:51 +08:00
|
|
|
{{#if isCurrentUserTalking}}
|
2015-06-05 06:25:07 +08:00
|
|
|
<span class="muteIcon" rel="tooltip" data-placement="bottom" title="you are talking">
|
2015-05-07 12:53:29 +08:00
|
|
|
<i class="ion-ios-mic usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2015-04-03 00:04:51 +08:00
|
|
|
{{else}}
|
2015-06-05 06:25:07 +08:00
|
|
|
<span class="muteIcon" rel="tooltip" data-placement="bottom" title="you are talking">
|
2015-05-07 12:53:29 +08:00
|
|
|
<i class="ion-ios-mic-outline usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2015-04-03 00:04:51 +08:00
|
|
|
{{/if}}
|
2014-09-20 05:23:58 +08:00
|
|
|
{{/if}}
|
2014-12-02 04:49:20 +08:00
|
|
|
{{else}}
|
2015-04-03 00:04:51 +08:00
|
|
|
{{#if isUserMuted userId}}
|
2015-05-07 12:53:29 +08:00
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is muted">
|
|
|
|
<i class="ion-ios-mic-off usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2014-10-28 10:19:56 +08:00
|
|
|
{{else}}
|
2015-04-03 00:04:51 +08:00
|
|
|
{{#if isUserTalking userId}}
|
2015-05-07 12:53:29 +08:00
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is talking">
|
|
|
|
<i class="ion-ios-mic usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2015-04-03 00:04:51 +08:00
|
|
|
{{else}}
|
2015-05-07 12:53:29 +08:00
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is not talking">
|
|
|
|
<i class="ion-ios-mic-outline usericon"></i>
|
2015-05-07 12:14:17 +08:00
|
|
|
</span>
|
2015-04-03 00:04:51 +08:00
|
|
|
{{/if}}
|
2014-10-28 10:19:56 +08:00
|
|
|
{{/if}}
|
2014-12-02 04:49:20 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2014-08-18 20:54:12 +08:00
|
|
|
|
2015-12-04 20:54:01 +08:00
|
|
|
{{#unless isCurrentUser userId}}
|
|
|
|
{{#if isCurrentUserModerator}}
|
|
|
|
<span class="kickUser" rel="tooltip" data-placement="bottom" title="Kick {{user.name}}">
|
|
|
|
<i class="icon fi-x-circle usericon"></i>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
|
|
|
|
2015-05-07 12:14:17 +08:00
|
|
|
{{#if isUserSharingVideo userId}}
|
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is sharing their webcam">
|
|
|
|
<i class="icon fi-video usericon"></i>
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
|
2015-04-24 02:02:56 +08:00
|
|
|
{{#if userLockedIconApplicable userId}}
|
2015-05-07 12:14:17 +08:00
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is locked">
|
|
|
|
<i class="icon fi-lock usericon"></i>
|
|
|
|
</span>
|
2015-04-24 02:02:56 +08:00
|
|
|
{{/if}}
|
2014-08-09 00:04:04 +08:00
|
|
|
</template>
|
|
|
|
|
2014-09-05 02:08:08 +08:00
|
|
|
<template name="usernameEntry">
|
2015-07-17 05:09:46 +08:00
|
|
|
<div class="status">
|
2015-12-07 20:11:29 +08:00
|
|
|
{{#if isCurrentUserModerator}}
|
|
|
|
{{#unless user.presenter}}
|
|
|
|
<span class="setPresenter" rel="tooltip" data-placement="bottom" title="set {{user.name}} as presenter">
|
|
|
|
<i class="icon fi-projection-screen statusIcon"></i>
|
|
|
|
</span>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
2016-03-01 04:58:19 +08:00
|
|
|
{{#if user.presenter}}
|
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is the presenter">
|
|
|
|
<i class="icon fi-projection-screen statusIcon"></i>
|
|
|
|
</span>
|
2015-07-17 05:09:46 +08:00
|
|
|
{{else}}
|
2016-03-01 04:58:19 +08:00
|
|
|
{{#if equals user.role "MODERATOR"}}
|
|
|
|
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is a moderator">
|
|
|
|
<i class="icon fi-torso statusIcon"></i>
|
|
|
|
</span>
|
2015-07-17 05:09:46 +08:00
|
|
|
{{else}}
|
2016-03-01 04:58:19 +08:00
|
|
|
{{#each emojiIcons}}
|
|
|
|
{{#if equals name ../user.emoji_status}}
|
|
|
|
{{> icon name=icon size="25" title=title}}
|
2015-10-02 06:24:43 +08:00
|
|
|
{{/if}}
|
2016-03-01 04:58:19 +08:00
|
|
|
{{/each}}
|
2015-07-17 05:09:46 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2016-03-01 04:58:19 +08:00
|
|
|
|
2015-07-17 05:09:46 +08:00
|
|
|
</div>
|
2015-10-02 06:24:43 +08:00
|
|
|
|
2015-07-18 05:50:49 +08:00
|
|
|
{{#if isCurrentUser userId}}
|
|
|
|
<span class="userCurrent usernameEntry {{#if hasGotUnreadMailClass 'PUBLIC_CHAT'}}gotUnreadMail{{/if}}" rel="tooltip" data-placement="bottom" title="{{user.name}} (you)">
|
2015-11-25 03:40:45 +08:00
|
|
|
<span class="userName">{{user.name}} (you)</span>
|
2015-07-18 05:50:49 +08:00
|
|
|
</span>
|
2015-10-02 06:24:43 +08:00
|
|
|
{{#if hasGotUnreadMailClass 'PUBLIC_CHAT' }}
|
2015-07-18 05:50:49 +08:00
|
|
|
<div class="unreadChatNumber">{{getNumberOfUnreadMessages 'PUBLIC_CHAT'}}</div>
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<span class="usernameEntry {{#if hasGotUnreadMailClass user.userid}}gotUnreadMail{{/if}}" rel="tooltip" data-placement="bottom" title="{{user.name}}">
|
2015-11-25 03:40:45 +08:00
|
|
|
<span class="userName"> {{user.name}}</span>
|
2015-07-18 05:50:49 +08:00
|
|
|
</span>
|
2015-10-02 06:24:43 +08:00
|
|
|
{{#if hasGotUnreadMailClass user.userid }}
|
2015-07-18 05:50:49 +08:00
|
|
|
<div class="unreadChatNumber">{{getNumberOfUnreadMessages user.userid}}</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2014-08-09 00:04:04 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="userItem">
|
2015-02-03 00:11:25 +08:00
|
|
|
{{> usernameEntry}}
|
2014-11-29 07:39:02 +08:00
|
|
|
<div id="usericons">
|
2014-08-18 20:54:12 +08:00
|
|
|
{{> displayUserIcons}}
|
2014-11-29 07:39:02 +08:00
|
|
|
</div>
|
2014-08-09 00:04:04 +08:00
|
|
|
</template>
|