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

96 lines
3.7 KiB
HTML
Raw Normal View History

2014-06-19 21:29:48 +08:00
<template name="chatbar">
2014-08-09 03:30:28 +08:00
<div id="{{id}}" {{visibility name}} class="component">
2014-08-07 01:46:54 +08:00
<div id="chatbar-contents">
2014-08-12 03:32:42 +08:00
<h3 class="title gradientBar"><span class="glyphicon glyphicon-comment"></span> {{title}}</h3>
2014-08-14 02:42:31 +08:00
<div style="overflow-y: scroll; height:40px">{{>tabButtons}}</div>
{{#if getInSession "display_chatPane"}}
<div id="chatbody">
<ul class="chat">
{{#each getCombinedMessagesForChat}}
2014-08-16 03:18:23 +08:00
<li {{messageFontSize}}>{{> message}}</li>
{{/each}}
</ul>
</div>
<div class="panel-footer">{{> chatInput}}</div>
{{else}}
{{> optionsBar}}
{{/if}}
</div>
</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>
<template name="chatOptions">
<p>Chat Options:</p>
{{> optionsFontSize}}
</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-12 03:32:42 +08:00
<strong>{{message.from_username}}</strong>
<small class="pull-right">{{toClockTime message.from_time}} {{#if message.from_time}}<span class="glyphicon glyphicon-time"></span>{{/if}}</small>
<div>{{{toClickable message.message}}}</div> <!-- Messages must be safely filtered and stripped -->
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">
<div class="optionsBar">
<p>Select a person to chat with privately</p>
<div class="private-chat-user-box" rel="tooltip" data-placement="top" title="Select a participant to open a private chat">
{{#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}}
</div>
<br/>
{{> chatOptions}}
</div>
</template>
<template name="optionsFontSize">
<div class="dropdown" style="float:left">
<span {{messageFontSize}}>Chat Message Font Size: </span>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Font Size ({{getInSession "messageFontSize"}})
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" style="height:80px; overflow-y:scroll; right:0px;">
<li role="presentation"><a class="fontSizeSelector" id="8" role="menuitem" tabindex="-1" href="#">8</a></li>
<li role="presentation"><a class="fontSizeSelector" id="10" role="menuitem" tabindex="-1" href="#">10</a></li>
<li role="presentation"><a class="fontSizeSelector" id="12" role="menuitem" tabindex="-1" href="#">12</a></li>
<li role="presentation"><a class="fontSizeSelector" id="14" role="menuitem" tabindex="-1" href="#">14</a></li>
<li role="presentation"><a class="fontSizeSelector" id="16" role="menuitem" tabindex="-1" href="#">16</a></li>
<li role="presentation"><a class="fontSizeSelector" id="18" role="menuitem" tabindex="-1" href="#">18</a></li>
</ul>
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-08-14 22:48:08 +08:00
{{#each getChatbarTabs}}
{{{makeTabButton}}}
{{/each}}
</ul>
2014-06-25 02:36:22 +08:00
</template>