|
|
|
|
|
|
|
<div id="chat-modal" class="chat-modal hide" tabindex="-1" role="dialog" aria-labelledby="Chat" aria-hidden="true" data-backdrop="none" data-name="{roomName}">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button id="chat-close-btn" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<button type="button" class="close hidden-xs hidden-sm" data-action="maximize"><span aria-hidden="true"><i class="fa fa-expand"></i></span><span class="sr-only">[[modules:chat.maximize]]</span></button>
|
|
|
|
<button type="button" class="close hidden-xs hidden-sm" data-action="minimize"><span aria-hidden="true"><i class="fa fa-minus"></i></span><span class="sr-only">[[modules:chat.minimize]]</span></button>
|
|
|
|
<div class="dropdown">
|
|
|
|
<button class="close" data-toggle="dropdown" component="chat/controlsToggle"><i class="fa fa-gear"></i></button>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" component="chat/controls">
|
|
|
|
<!-- IF users.length -->
|
|
|
|
<li class="dropdown-header">[[modules:chat.in-room]]</li>
|
|
|
|
<!-- BEGIN users -->
|
|
|
|
<li>
|
|
|
|
<a href="{config.relative_path}/uid/{../uid}">
|
|
|
|
<!-- IF ../picture -->
|
|
|
|
<img class="avatar avatar-sm" component="user/picture" src="{../picture}" align="left" itemprop="image" />
|
|
|
|
<!-- ELSE -->
|
|
|
|
<div class="avatar avatar-sm" component="user/picture" style="background-color: {../icon:bgColor};">{../icon:text}</div><!-- END -->{../username}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- END -->
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
<!-- END -->
|
|
|
|
<li class="dropdown-header">[[modules:chat.options]]</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" data-action="members"><i class="fa fa-fw fa-plus"></i> [[modules:chat.add-users-to-room]]</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" data-action="rename"><i class="fa fa-fw fa-edit"></i> [[modules:chat.rename-room]]</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" data-action="leave"><i class="fa fa-fw fa-sign-out"></i> [[modules:chat.leave]]</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4 component="chat/room/name"><!-- IF roomName -->{roomName}<!-- ELSE -->{usernames}<!-- ENDIF roomName --></h4>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<ul class="chat-content" component="chat/messages">
|
|
|
|
<!-- IMPORT partials/chats/messages.tpl -->
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div component="chat/composer">
|
|
|
|
<textarea component="chat/input" placeholder="[[modules:chat.placeholder]]" class="form-control chat-input mousetrap" rows="1"></textarea>
|
|
|
|
<button class="btn btn-primary" type="button" data-action="send">[[modules:chat.send]]</button>
|
|
|
|
<span component="chat/message/remaining">{maximumChatMessageLength}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|