mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Merge pull request #4205 from Alys/commGuide-accept-before-post-2014-11-01
block chat until user agrees to Community Guidelines
This commit is contained in:
commit
00b9e0d6ac
1 changed files with 12 additions and 14 deletions
|
|
@ -1,18 +1,16 @@
|
||||||
//div.chat-form.guidelines-not-accepted(ng-if='!user.flags.communityGuidelinesAccepted')
|
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
|
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')
|
a(target='_blank', href='/static/community-guidelines')=env.t('communityGuidelines')
|
||||||
// | and then click the button below to indicate that you accept them.
|
| and then click the button below to indicate that you accept them.
|
||||||
// .chat-controls
|
.chat-controls
|
||||||
// div
|
div
|
||||||
// button.btn.btn-warning(ng-click='acceptCommunityGuidelines()')=env.t('iAcceptCommunityGuidelines')
|
button.btn.btn-warning(ng-click='acceptCommunityGuidelines()')=env.t('iAcceptCommunityGuidelines')
|
||||||
// .chat-buttons
|
.chat-buttons
|
||||||
// button(type="button", ng-click='sync(group)', tooltip=env.t('toolTipMsg'))
|
button(type="button", ng-click='sync(group)', tooltip=env.t('toolTipMsg'))
|
||||||
// span.glyphicon.glyphicon-refresh
|
span.glyphicon.glyphicon-refresh
|
||||||
|
|
||||||
//form.chat-form(ng-if='user.flags.communityGuidelinesAccepted' ng-submit='postChat(group,message.content)')
|
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')
|
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)
|
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')
|
span.user-list(ng-show='!isAtListHidden')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue