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

19 lines
977 B
Text
Raw Normal View History

form(ng-submit='postChat(group,_chatMessage)')
.-options
2013-09-09 22:28:46 +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,_chatMessage)"}', ng-model='_chatMessage', flag='@', at-user, auto-complete)
span.user-list(ng-show='!isAtListHidden')
ul.list-at-user
li(ng-repeat='user in users | filter:query.text | limitTo: 5', ng-click='autoComplete(user)')
span.username.label(class='label-contributor-{{user.contributor.level}}') {{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')