2013-05-30 19:48:34 +00:00
|
|
|
{literal}
|
2014-02-08 02:21:25 +00:00
|
|
|
{if $message.type == $messageTypes.JOIN || $message.type == $messageTypes.LEAVE}
|
|
|
|
<div class="timsChatMessageIcon">
|
|
|
|
<span class="icon icon16 icon-{if $message.type == $messageTypes.JOIN}signin{else}signout{/if}"></span>
|
2013-11-02 22:08:12 +00:00
|
|
|
</div>
|
|
|
|
{/if}
|
2014-02-08 02:21:25 +00:00
|
|
|
<div class="timsChatInnerMessageContainer{if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER || $message.type == $messageTypes.INFORMATION || $message.type == $messageTypes.ATTACHMENT} bubble{/if}{if $message.type == $messageTypes.WHISPER && $message.sender != $__wcf.User.userID} right{/if}">
|
|
|
|
<div class="timsChatAvatarContainer">
|
|
|
|
<div class="userAvatar framed">
|
2013-11-02 22:08:12 +00:00
|
|
|
{if $message.type != $messageTypes.INFORMATION}
|
|
|
|
{if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER || $message.type == $messageTypes.ATTACHMENT}
|
|
|
|
{@$message.avatar[32]}
|
|
|
|
{else}
|
|
|
|
{@$message.avatar[16]}
|
|
|
|
{/if}
|
2013-06-24 15:45:46 +00:00
|
|
|
{else}
|
2013-11-02 22:08:12 +00:00
|
|
|
<span class="icon icon32 icon-info-sign"></span>
|
2013-06-24 15:45:46 +00:00
|
|
|
{/if}
|
2013-11-02 22:08:12 +00:00
|
|
|
</div>
|
|
|
|
{if $message.type == $messageTypes.ATTACHMENT}
|
2014-02-08 02:21:25 +00:00
|
|
|
<small class="framed timsChatAvatarExtraIcon">
|
2013-11-02 22:08:12 +00:00
|
|
|
<span class="icon icon16 icon-paperclip"></span>
|
|
|
|
</small>
|
2013-06-23 16:48:48 +00:00
|
|
|
{/if}
|
|
|
|
</div>
|
2014-02-08 02:21:25 +00:00
|
|
|
<div class="timsChatInnerMessage">
|
|
|
|
<span class="timsChatUsernameContainer">
|
2013-06-24 15:45:46 +00:00
|
|
|
{@$message.formattedUsername}
|
|
|
|
|
2014-02-08 02:21:25 +00:00
|
|
|
{if $message.type == $messageTypes.WHISPER}
|
2014-02-27 18:13:42 +00:00
|
|
|
<span class="icon icon16 icon-double-angle-right jsTooltip pointer" title="{/literal}{lang}chat.global.whispers{/lang}{literal}" onclick="be.bastelstu.Chat.insertText('/whisper {if $message.receiver == WCF.User.userID}{$message.username.replace("\\", "\\\\").replace("'", "\\'")}{else}{$message.additionalData.receiverUsername.replace("\\", "\\\\").replace("'", "\\'")}{/if}, ', { append: false });"></span>
|
2014-02-27 22:12:22 +00:00
|
|
|
<span class="receiver">{$message.additionalData.receiverUsername}</span>
|
2013-06-24 15:45:46 +00:00
|
|
|
{/if}
|
2013-06-23 16:48:48 +00:00
|
|
|
</span>
|
2013-06-24 15:45:46 +00:00
|
|
|
|
|
|
|
<time>{@$message.formattedTime}</time>
|
|
|
|
|
2013-11-02 22:08:12 +00:00
|
|
|
{if $message.type == $messageTypes.NORMAL || $message.type == $messageTypes.WHISPER || $message.type == $messageTypes.ATTACHMENT}
|
|
|
|
{if $message.type == $messageTypes.ATTACHMENT}<span>{lang}chat.message.{$messageTypes.ATTACHMENT}{/lang}</span>{/if}
|
2014-03-01 23:33:45 +00:00
|
|
|
<ul class="timsChatTextContainer">
|
|
|
|
<li class="timsChatText" data-message-id="{@$message.messageID}">
|
2013-06-24 15:45:46 +00:00
|
|
|
{if $message.isFollowUp} <time>{@$message.formattedTime}</time>{/if}
|
|
|
|
{@$message.formattedMessage}
|
2014-03-01 23:33:45 +00:00
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.mark{/lang}"/>
|
2013-06-24 15:45:46 +00:00
|
|
|
</li>
|
2013-06-23 16:48:48 +00:00
|
|
|
</ul>
|
2014-03-01 23:33:45 +00:00
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageBlockMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.markAll{/lang}" />
|
2014-03-02 19:02:50 +00:00
|
|
|
{elseif $message.type == $messageTypes.INFORMATION}
|
|
|
|
<div class="timsChatTextContainer">
|
|
|
|
<span class="timsChatText" data-message-id="{@$message.messageID}">
|
|
|
|
{@$message.formattedMessage}
|
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.mark{/lang}"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-11-19 20:17:22 +00:00
|
|
|
{else}
|
2014-03-01 23:33:45 +00:00
|
|
|
<span class="timsChatTextContainer">
|
|
|
|
<span class="timsChatText" data-message-id="{@$message.messageID}">
|
|
|
|
{@$message.formattedMessage}
|
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.mark{/lang}"/>
|
|
|
|
</span>
|
|
|
|
</span>
|
2013-06-23 16:48:48 +00:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-30 19:48:34 +00:00
|
|
|
{/literal}
|