2014-09-14 02:39:25 +00:00
//div.chat-form.guidelines-not-accepted(ng-if='!user.flags.communityGuidelinesAccepted')
// p If you would like to post messages in the Tavern or any party or guild chat, please first read our
// |
// a(target='_blank', href='/static/community-guidelines')=env.t('communityGuidelines')
// | and then click the button below to indicate that you accept them.
// .chat-controls
// div
// button.btn.btn-warning(ng-click='acceptCommunityGuidelines()')=env.t('iAcceptCommunityGuidelines')
// .chat-buttons
// button(type="button", ng-click='sync(group)', tooltip=env.t('toolTipMsg'))
// span.glyphicon.glyphicon-refresh
2014-09-07 05:14:58 +00:00
2014-09-14 02:39:25 +00:00
//form.chat-form(ng-if='user.flags.communityGuidelinesAccepted' ng-submit='postChat(group,message.content)')
//////////// When we want to block the ability to chat until the Community Guidelines have been accepted, delete the one line immediately below this comment and un-comment all lines above.
form.chat-form(ng-submit='postChat(group,message.content)')
2014-02-05 18:05:42 +00:00
div(ng-controller='AutocompleteCtrl')
textarea.form-control(rows=4, ui-keypress='{13:"postChat(group,message.content)"}', ng-model='message.content', updateinterval='250', flag='@', at-user, auto-complete)
span.user-list(ng-show='!isAtListHidden')
ul.list-at-user
2014-06-21 03:00:39 +00:00
li(ng-repeat='user in response | filter:query.text | limitTo: 5', ng-click='autoComplete(user)')
span.username.label.label-default(ng-class=':: userLevelStyle(user)') {{::user.user}}
2014-07-14 20:51:31 +00:00
.chat-controls
.chat-formatting
2014-02-05 18:05:42 +00:00
include ../../shared/formatting-help
2014-07-14 20:51:31 +00:00
.chat-buttons
input(type='submit', value=env.t('sendChat'), ng-class='{disabled: _sending == true}')
button(type="button", ng-click='sync(group)', tooltip=env.t('toolTipMsg'))
2014-09-07 05:14:58 +00:00
span.glyphicon.glyphicon-refresh