You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.9 KiB
Smarty
34 lines
1.9 KiB
Smarty
<li component="chat/message" class="chat-message clear<!-- IF ../deleted --> deleted<!-- END -->" data-index="{messages.index}" data-mid="{messages.messageId}" data-uid="{messages.fromuid}" data-self="{messages.self}" data-break="{messages.newSet}" data-timestamp="{messages.timestamp}">
|
|
<div class="message-header">
|
|
<a href="{config.relative_path}/user/{messages.fromUser.userslug}">{buildAvatar(messages.fromUser, "md", true, "not-responsive")}</a>
|
|
<strong><span class="chat-user"><a href="{config.relative_path}/user/{messages.fromUser.userslug}">{messages.fromUser.displayname}</a></span></strong>
|
|
<!-- IF ../fromUser.banned -->
|
|
<span class="label label-danger">[[user:banned]]</span>
|
|
<!-- END -->
|
|
<!-- IF ../fromUser.deleted -->
|
|
<span class="label label-danger">[[user:deleted]]</span>
|
|
<!-- END -->
|
|
<span class="chat-timestamp timeago" title="{messages.timestampISO}"></span>
|
|
<!-- IF messages.edited -->
|
|
<div class="text-muted pull-right" title="[[global:edited]] {messages.editedISO}"><i class="fa fa-edit"></i></span></div>
|
|
<!-- ENDIF messages.edited -->
|
|
</div>
|
|
<div class="message-body-wrapper">
|
|
<div component="chat/message/body" class="message-body">
|
|
{messages.content}
|
|
</div>
|
|
|
|
<!-- IF !config.disableChatMessageEditing -->
|
|
<!-- IF messages.self -->
|
|
<div class="btn-group controls">
|
|
<button class="btn btn-xs btn-link" data-action="edit"><i class="fa fa-pencil"></i></button>
|
|
<button class="btn btn-xs btn-link" data-action="delete"><i class="fa fa-times"></i></button>
|
|
<button class="btn btn-xs btn-link" data-action="restore"><i class="fa fa-repeat"></i></button>
|
|
<!-- IF isAdminOrGlobalMod -->
|
|
<button class="btn btn-xs btn-link chat-ip" title="[[modules:chat.show-ip]]"><i class="fa fa-info-circle chat-ip-button"></i></button>
|
|
<!-- ENDIF isAdminOrGlobalMod -->
|
|
</div>
|
|
<!-- ENDIF messages.self -->
|
|
<!-- ENDIF !config.disableChatMessageEditing -->
|
|
</div>
|
|
</li> |