2014-06-19 21:29:48 +08:00
|
|
|
<template name="chatbar">
|
2014-08-07 01:46:54 +08:00
|
|
|
<div id="{{id}}" {{visibility name}}>
|
2014-08-08 00:02:35 +08:00
|
|
|
<h3 class="title">{{title}}</h3>
|
2014-08-07 01:46:54 +08:00
|
|
|
{{> tabButtons}}
|
|
|
|
<div id="chatbar-contents">
|
|
|
|
{{#if getInSession "display_chatPane"}}
|
|
|
|
{{#Layout template="scrollWindow" id="chatScrollWindow"}}
|
|
|
|
{{#contentFor region="scrollContents"}}
|
|
|
|
{{> messageBar}}
|
|
|
|
{{/contentFor}}
|
|
|
|
{{/Layout}}
|
|
|
|
{{else}}
|
|
|
|
{{> optionsBar}}
|
|
|
|
{{/if}}
|
|
|
|
{{> chatInput}}
|
2014-06-24 21:46:42 +08:00
|
|
|
</div>
|
2014-08-07 01:46:54 +08:00
|
|
|
</div>
|
2014-06-19 21:29:48 +08:00
|
|
|
</template>
|
|
|
|
|
2014-08-09 00:04:04 +08:00
|
|
|
<template name="chatInput">
|
|
|
|
<div class="chat-input-wrapper">
|
|
|
|
<input type="text" id="newMessageInput" placeholder="Write a message..." rel="tooltip" data-placement="top" title="Write a new message" />
|
|
|
|
<button type="submit" id="sendMessageButton" class="btn" rel="tooltip" data-placement="top" title="Click to send your message">
|
|
|
|
Send
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</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-08-07 01:46:54 +08:00
|
|
|
<div class="chat-message {{class}}">
|
2014-07-03 00:17:05 +08:00
|
|
|
<span class="chat-username">{{message.from_username}}</span>
|
|
|
|
<p class="chat-timestamp">{{message.from_time}}</p>
|
|
|
|
<p> {{message.message}}</p>
|
2014-06-25 02:11:26 +08:00
|
|
|
</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-08-08 00:02:35 +08:00
|
|
|
{{#Layout template="moduleTable" tbodyClass="chat-entry"}}
|
|
|
|
{{#contentFor region="Contents"}}
|
2014-08-08 04:29:13 +08:00
|
|
|
{{#each getFormattedMessagesForChat}}
|
2014-08-08 00:02:35 +08:00
|
|
|
<tr>{{>message}}</tr>
|
|
|
|
{{/each}}
|
|
|
|
{{/contentFor}}
|
|
|
|
{{/Layout}}
|
2014-06-24 21:46:42 +08:00
|
|
|
</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">
|
2014-08-07 01:46:54 +08:00
|
|
|
{{#Layout template="scrollWindow" id="privateChatUserScrollWindow"}}
|
|
|
|
{{#contentFor region="scrollContents"}}
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody class="private-chat-user-list">
|
|
|
|
{{#each getUsersInMeeting}}
|
|
|
|
<tr class="private-chat-user-entry">
|
|
|
|
{{#unless isCurrentUser userId}}
|
|
|
|
{{user.name}}
|
|
|
|
{{/unless}}
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/contentFor}}
|
|
|
|
{{/Layout}}
|
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-07-10 21:11:38 +08:00
|
|
|
<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}}
|
2014-07-10 21:11:38 +08:00
|
|
|
</ul>
|
2014-06-25 02:36:22 +08:00
|
|
|
</template>
|