diff --git a/bigbluebutton-html5/app/client/globals.coffee b/bigbluebutton-html5/app/client/globals.coffee index 0cc2e7f8a9..230f3dd656 100755 --- a/bigbluebutton-html5/app/client/globals.coffee +++ b/bigbluebutton-html5/app/client/globals.coffee @@ -83,6 +83,9 @@ Handlebars.registerHelper "getUsersInMeeting", -> Handlebars.registerHelper "getWhiteboardTitle", -> (BBB.currentPresentationName() or "Loading presentation...") +Handlebars.registerHelper "getCurrentUserEmojiStatus", -> + BBB.getCurrentUser()?.user?.emoji_status + Handlebars.registerHelper "isCurrentUser", (userId) -> userId is null or userId is BBB.getCurrentUser()?.userId @@ -98,6 +101,9 @@ Handlebars.registerHelper "privateChatName", -> Handlebars.registerHelper "isCurrentUserRaisingHand", -> BBB.isCurrentUserRaisingHand() +Handlebars.registerHelper "isCurrentUserEmojiStatusSet", -> + BBB.isCurrentUserEmojiStatusSet() + Handlebars.registerHelper "isCurrentUserSharingVideo", -> BBB.amISharingVideo() @@ -214,7 +220,7 @@ Handlebars.registerHelper "getPollQuestions", -> bTime = b.user.raise_hand.getTime() if aTime < bTime return -1 - else + else return 1 else if a.user.raise_hand return -1 @@ -227,8 +233,8 @@ Handlebars.registerHelper "getPollQuestions", -> else if not b.user.phone_user return 1 - #Check name (case-insensitive) in the event of a tie up above. If the name - #is the same then use userID which should be unique making the order the same + #Check name (case-insensitive) in the event of a tie up above. If the name + #is the same then use userID which should be unique making the order the same #across all clients. if a.user._sort_name < b.user._sort_name diff --git a/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee b/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee index 0bd66b46dd..ba4fe15e0c 100755 --- a/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee +++ b/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee @@ -157,6 +157,12 @@ https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/ BBB.isCurrentUserRaisingHand = -> BBB.isUserRaisingHand(BBB.getCurrentUser()?.userId) + BBB.isUserEmojiStatusSet = (userId) -> + BBB.getUser(userId)?.user?.emoji_status isnt "none" and BBB.getUser(userId)?.user?.emoji_status isnt undefined + + BBB.isCurrentUserEmojiStatusSet = -> + BBB.isUserEmojiStatusSet(BBB.getCurrentUser()?.userId) + BBB.isMeetingRecording = -> MEteor.Meetings.findOne()?.recorded diff --git a/bigbluebutton-html5/app/client/stylesheets/users.less b/bigbluebutton-html5/app/client/stylesheets/users.less index 262b813419..b4ec59db48 100755 --- a/bigbluebutton-html5/app/client/stylesheets/users.less +++ b/bigbluebutton-html5/app/client/stylesheets/users.less @@ -183,7 +183,10 @@ width: 15px; min-width: 15px; height: 27px; - margin-right: 10px; + margin-right: 15px; font-size: 18px; color: #FFFFFF; + span { + padding-left: 5px; + } } diff --git a/bigbluebutton-html5/app/client/stylesheets/whiteboard.less b/bigbluebutton-html5/app/client/stylesheets/whiteboard.less index 643de24ef6..6821450849 100755 --- a/bigbluebutton-html5/app/client/stylesheets/whiteboard.less +++ b/bigbluebutton-html5/app/client/stylesheets/whiteboard.less @@ -323,3 +323,7 @@ font-size: 500%; } } + +.clearEmojiButton { + background-color: #34495E; +} diff --git a/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.coffee b/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.coffee index 7869270ef4..bf34b14f30 100755 --- a/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.coffee +++ b/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.coffee @@ -57,7 +57,10 @@ Template.whiteboard.events 'click .raiseHandEmojiButton': (event) -> BBB.setEmojiStatus(BBB.getMeetingId(), getInSession('userId'), getInSession('userId'), getInSession('authToken'), "raiseHand") - 'click .sl-fab-trigger': (event) -> + 'click .clearEmojiButton': (event) -> + BBB.setEmojiStatus(BBB.getMeetingId(), getInSession('userId'), getInSession('userId'), getInSession('authToken'), "none") + + 'click .sl-fab-trigger, click .sl-fab-btn': (event) -> $('.sl-fab-trigger').blur() toggleFAB() diff --git a/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.html b/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.html index 60da6febdd..61cf51e845 100755 --- a/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.html +++ b/bigbluebutton-html5/app/client/views/whiteboard/whiteboard.html @@ -6,29 +6,97 @@
-
- - - - - - - -
+ {{#if isCurrentUserEmojiStatusSet}} +
+ + + {{#if equals getCurrentUserEmojiStatus "sad"}} + + {{else}} + + {{/if}} + + {{#if equals getCurrentUserEmojiStatus "happy"}} + + {{else}} + + {{/if}} + + {{#if equals getCurrentUserEmojiStatus "confused"}} + + {{else}} + + {{/if}} + + {{#if equals getCurrentUserEmojiStatus "neutral"}} + + {{else}} + + {{/if}} + + {{#if equals getCurrentUserEmojiStatus "away"}} + + {{else}} + + {{/if}} + + {{#if equals getCurrentUserEmojiStatus "raiseHand"}} + + {{else}} + + {{/if}} +
+ {{else}} +
+ + + + + + + +
+ {{/if}} {{#if isMobile}} {{> makeButton btn_class="soaringButton fullscreenButton whiteboardFullscreenButton" i_class="ion-arrow-expand"}} {{/if}}