mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
28 lines
1.8 KiB
Text
28 lines
1.8 KiB
Text
//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
|
|
|
|
//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)')
|
|
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
|
|
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}}
|
|
.chat-controls
|
|
.chat-formatting
|
|
include ../../shared/formatting-help
|
|
.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'))
|
|
span.glyphicon.glyphicon-refresh
|