habitica/views/options/social/chat-box.jade

19 lines
1.1 KiB
Text
Raw Normal View History

2013-11-24 16:49:25 +00:00
form.chat-form(ng-submit='postChat(group,message.content)')
.-options
2013-12-20 02:39:12 +00:00
//FIXME ng-model makes this painfully slow! using jquery for now, which is really non-angular-like
.control-group.option-large(ng-controller='AutocompleteCtrl')
textarea.chat-textarea.option-content(style='height:6em;', 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(bindonce='users', ng-repeat='user in users | filter:query.text | limitTo: 5', ng-click='autoComplete(user)')
span.username.label(class='label-contributor-{{user.contributor.level}}', ng-class='{"label-npc": user.backer.npc}') {{user.user}}
2013-09-09 22:28:46 +00:00
table.pull-right
tr
td
2013-11-04 14:17:09 +00:00
input.btn.chat-btn(type='submit', value='Send Chat', ng-class='{disabled: _sending == true}')
2013-09-09 22:28:46 +00:00
td
button.btn(type="button", ng-click='sync(group)', tooltip='Fetch Recent Messages')
2013-10-16 19:02:57 +00:00
i(class='pull-right icon-refresh')