bigbluebutton-Github/bigbluebutton-html5/app/client/views/users/user_item.html

119 lines
4.4 KiB
HTML
Raw Normal View History

<template name="displayUserIcons">
2015-05-07 12:14:17 +08:00
<!-- audio, video, locking, presenter/moderator, hand raised -->
{{#if isUserInAudio userId}}
2015-04-06 22:29:25 +08:00
<!-- if the user is listen only, only display the one icon -->
{{#if isUserListenOnlyAudio userId}}
2015-05-07 12:14:17 +08:00
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is only listening">
<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}}
<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}}
<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}}
<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}}
{{/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>
{{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}}
{{/if}}
2014-12-02 04:49:20 +08:00
{{/if}}
{{/if}}
{{/if}}
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>
<template name="usernameEntry">
<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}}
{{#if user.presenter}}
<span rel="tooltip" data-placement="bottom" title="{{user.name}} is the presenter">
<i class="icon fi-projection-screen statusIcon"></i>
</span>
{{else}}
{{#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>
{{else}}
{{#each emojiIcons}}
{{#if equals name ../user.emoji_status}}
{{> icon name=icon size="25" title=title}}
2015-10-02 06:24:43 +08:00
{{/if}}
{{/each}}
{{/if}}
{{/if}}
</div>
2015-10-02 06:24:43 +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>
</span>
2015-10-02 06:24:43 +08:00
{{#if hasGotUnreadMailClass 'PUBLIC_CHAT' }}
<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>
</span>
2015-10-02 06:24:43 +08:00
{{#if hasGotUnreadMailClass user.userid }}
<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">
{{> displayUserIcons}}
2014-11-29 07:39:02 +08:00
</div>
2014-08-09 00:04:04 +08:00
</template>