bigbluebutton-Github/labs/meteor-client/client/views/chat/chat_bar.html

103 lines
2.9 KiB
HTML
Raw Normal View History

2014-06-19 21:29:48 +08:00
<template name="chatbar">
{{#if getInSession "display_chatbar"}}
2014-06-24 21:46:42 +08:00
<div id="chat">
<h3>Chat</h3>
{{> tabButtons}}
2014-06-24 21:46:42 +08:00
<div id="chatbar-contents">
2014-07-04 01:56:16 +08:00
{{#if getInSession "display_chatPane"}}
2014-06-24 21:46:42 +08:00
{{> messageBar}}
{{> chatInput}}
2014-06-24 21:46:42 +08:00
{{else}}
{{> optionsBar}}
{{/if}}
</div>
</div>
{{/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">
<div class="chat-message">
<span class="chat-username">{{message.from_username}}</span>
<p class="chat-timestamp">{{message.from_time}}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;{{message.message}}</p>
2014-06-25 02:11:26 +08:00
<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">
{{#if isUserInPrivateChat}}
<p>You are in a Private Chat.</p>
{{else}}
<p>This Chat is Open to Everyone.</p>
{{/if}}
<div id="chatScrollWindow">
{{#if isUserInPrivateChat}} <!-- If in private chat display greeting, then all messages after join -->
{{> chatGreeting}}
{{#each getMessagesInChat}}
{{> message}}
{{/each}}
{{else}}
{{#each getMessagesInChat true}} <!-- before they joined meeting -->
{{> message}}
{{/each}}
{{> chatGreeting}}
{{#each getMessagesInChat false}} <!-- after they joined meeting -->
{{> message}}
{{/each}}
{{/if}}
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">
<p>Select a person to chat with privately</p>
<div class="private-chat-user-box">
<div id="chatScrollWindow">
<table class="table table-hover">
2014-07-04 01:56:16 +08:00
<tbody class="private-chat-user-list">
{{#each getUsersInMeeting}}
2014-07-04 01:56:16 +08:00
<tr class="private-chat-user-entry">
2014-06-27 21:59:31 +08:00
{{#if isCurrentUser userId}}
<strong>{{user.name}} (you)</strong>
{{else}}
{{user.name}}
{{/if}}
</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">
<ul id="tabButtonContainer" class="nav nav-tabs">
2014-07-04 01:56:16 +08:00
{{#each getChatbarTabs}}
2014-07-04 23:00:46 +08:00
{{{makeTabButton}}}
2014-07-04 01:56:16 +08:00
{{/each}}
</ul>
2014-06-25 02:36:22 +08:00
</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 {{getMeetingName}}!</p>
<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/>
<p>This server is running BigBlueButton {{getInSession "bbbServerVersion"}}.</p>
2014-06-25 21:28:15 +08:00
</div>
</template>
<template name="chatInput">
<br/>
<input type="text" id="newMessageInput" placeholder="Write a message..." />
</template>