2014-06-19 21:29:48 +08:00
|
|
|
<template name="chatbar">
|
2014-06-24 03:54:17 +08:00
|
|
|
{{#if getInSession "display_chatbar"}}
|
2014-06-24 21:46:42 +08:00
|
|
|
<div id="chat">
|
|
|
|
<h3>Chat</h3>
|
|
|
|
<ul class="nav nav-tabs">
|
2014-06-25 02:36:22 +08:00
|
|
|
{{> tabButtons}}
|
2014-06-24 21:46:42 +08:00
|
|
|
</ul>
|
|
|
|
<div id="chatbar-contents">
|
2014-06-25 02:39:32 +08:00
|
|
|
{{#if getInSession "display_publicPane"}}
|
2014-06-24 21:46:42 +08:00
|
|
|
{{> messageBar}}
|
2014-06-27 01:13:19 +08:00
|
|
|
{{> chatInput}}
|
2014-06-24 21:46:42 +08:00
|
|
|
{{else}}
|
|
|
|
{{> optionsBar}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-06-24 03:54:17 +08:00
|
|
|
{{/if}}
|
2014-06-19 21:29:48 +08:00
|
|
|
</template>
|
|
|
|
|
2014-06-26 23:13:29 +08:00
|
|
|
<!-- Displays and styles an individual message in the chat -->
|
2014-06-19 21:29:48 +08:00
|
|
|
<template name="message">
|
2014-06-25 02:11:26 +08:00
|
|
|
<div class="chat-message">
|
|
|
|
<span class="chat-username">{{from}}</span>
|
|
|
|
<p class="chat-timestamp">{{timestamp}}</p>
|
|
|
|
<p> {{contents}}</p>
|
|
|
|
<br/>
|
|
|
|
</div>
|
2014-06-23 21:21:03 +08:00
|
|
|
</template>
|
2014-06-24 21:46:42 +08:00
|
|
|
|
2014-06-26 23:13:29 +08:00
|
|
|
<!-- Display the actual message bar -->
|
2014-06-24 21:46:42 +08:00
|
|
|
<template name="messageBar">
|
2014-06-27 01:13:19 +08:00
|
|
|
<div id="chatScrollWindow">
|
2014-06-24 21:46:42 +08:00
|
|
|
{{#each getMessagesInChat}}
|
|
|
|
{{> message}}
|
2014-06-25 21:28:15 +08:00
|
|
|
{{/each}}
|
|
|
|
{{> chatGreeting}}
|
2014-06-24 21:46:42 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2014-06-26 23:13:29 +08:00
|
|
|
<!-- Displays the list of options available -->
|
2014-06-24 21:46:42 +08:00
|
|
|
<template name="optionsBar">
|
2014-06-27 01:13:19 +08:00
|
|
|
<p>Select a person to chat with privately</p>
|
|
|
|
<div class="private-chat-user-box">
|
|
|
|
<div id="chatScrollWindow">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody class="private-chat-user-entry">
|
|
|
|
{{#each getUsersInMeeting}}
|
|
|
|
<tr>
|
2014-06-27 21:59:31 +08:00
|
|
|
{{#if isCurrentUser userId}}
|
|
|
|
<strong>{{user.name}} (you)</strong>
|
|
|
|
{{else}}
|
|
|
|
{{user.name}}
|
|
|
|
{{/if}}
|
2014-06-27 01:13:19 +08:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-06-24 21:46:42 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
2014-06-25 02:36:22 +08:00
|
|
|
|
2014-06-26 23:13:29 +08:00
|
|
|
<!-- Display buttons on the chat tab, public, options, and all the private chat tabs -->
|
2014-06-25 02:36:22 +08:00
|
|
|
<template name="tabButtons">
|
2014-06-25 02:39:32 +08:00
|
|
|
{{#if getInSession "display_publicPane"}}
|
2014-06-25 02:36:22 +08:00
|
|
|
<li class="active publicChatTab"><a href="#" data-toggle="tab">Public</a></li>
|
|
|
|
<li class="optionsChatTab"><a href="#" data-toggle="tab">Options</a></li>
|
|
|
|
{{else}}
|
|
|
|
<li class="publicChatTab"><a href="#" data-toggle="tab">Public</a></li>
|
|
|
|
<li class="active optionsChatTab"><a href="#" data-toggle="tab">Options</a></li>
|
|
|
|
{{/if}}
|
|
|
|
</template>
|
2014-06-25 21:28:15 +08:00
|
|
|
|
2014-06-26 23:13:29 +08:00
|
|
|
<!-- When done displaying previous chat messages, display the BBB greeting -->
|
2014-06-25 21:28:15 +08:00
|
|
|
<template name="chatGreeting">
|
|
|
|
<div class="chatGreeting">
|
|
|
|
<p>Welcome to {{getInSession "meetingName"}}!</p>
|
2014-06-27 04:15:31 +08:00
|
|
|
<p>For help on using BigBlueButton see these (short) <a href="http://bigbluebutton.org/videos/" target="_blank">tutorial videos</a>.</p>
|
2014-06-25 21:28:15 +08:00
|
|
|
<p>To join the audio bridge click the headset icon (upper-left hand corner). Use a headset to avoid causing background noise for others.</p>
|
|
|
|
<br/>
|
2014-06-27 04:11:31 +08:00
|
|
|
<p>This server is running BigBlueButton {{getInSession "bbbServerVersion"}}.</p>
|
2014-06-25 21:28:15 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
2014-06-27 01:13:19 +08:00
|
|
|
|
|
|
|
<template name="chatInput">
|
|
|
|
<br/>
|
|
|
|
<input type="text" id="newMessageInput" placeholder="Write a message..." />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|