Fixed some private chat things

This commit is contained in:
perroned 2014-08-14 07:48:08 -07:00
parent 59bcb84b9d
commit a83e2fb947
3 changed files with 11 additions and 9 deletions

View File

@ -8,8 +8,8 @@
}
.chatGreeting {
color: blue;
font-size: 12px;
line-height: 14px;
margin-top:5px;
}
.chat-input-wrapper {
margin-left:20px;

View File

@ -39,11 +39,13 @@ Template.chatInput.rendered = ->
Template.chatbar.helpers
getChatGreeting: ->
greeting =
"<p>Welcome to #{getMeetingName()}!</p>
"<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>
<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>"
<p>This server is running BigBlueButton #{getInSession 'bbbServerVersion'}.</p>
</div>"
# This method returns all messages for the user. It looks at the session to determine whether the user is in
#private or public chat. If true is passed, messages returned are from before the user joined. Else, the messages are from after the user joined
@ -128,6 +130,6 @@ Template.tabButtons.helpers
button += 'class="'
button += 'active ' if getInSession("inChatWith") is @userId
button += "tab #{@class}\"><a href=\"#\" data-toggle=\"tab\">#{@name}"
button += '&nbsp;<button class="close closeTab" type="button" >×</button>' if @name isnt 'Public' and @name isnt 'Options'
button += '&nbsp;<button class="close closeTab" type="button" >×</button>' if @class is 'privateChatTab'
button += '</a></li>'
button

View File

@ -32,7 +32,7 @@
<template name="message">
<strong>{{message.from_username}}</strong>
<small class="pull-right">{{message.from_time}} <span class="glyphicon glyphicon-time"></span></small>
<div>{{message.message}}</div>
<div>{{{message.message}}}</div> <!-- Messages must be safely filtered and stripped -->
</template>
<!-- Displays the list of options available -->
@ -60,8 +60,8 @@
<!-- Display buttons on the chat tab, public, options, and all the private chat tabs -->
<template name="tabButtons">
<ul id="tabButtonContainer" class="nav nav-tabs">
{{#each getChatbarTabs}}
{{{makeTabButton}}}
{{/each}}
</ul>
{{#each getChatbarTabs}}
{{{makeTabButton}}}
{{/each}}
</ul>
</template>