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

90 lines
2.7 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>
<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">
{{#if getInSession "display_publicPane"}}
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">
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>&nbsp;&nbsp;&nbsp;&nbsp;{{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">
<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">
<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}}
</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">
{{#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>
<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>