2013-05-30 22:48:34 +03:00
|
|
|
{literal}
|
2014-02-08 03:21:25 +01: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 23:08:12 +01:00
|
|
|
</div>
|
|
|
|
{/if}
|
2014-02-08 03:21:25 +01: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 23:08:12 +01: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 17:45:46 +02:00
|
|
|
{else}
|
2013-11-02 23:08:12 +01:00
|
|
|
<span class="icon icon32 icon-info-sign"></span>
|
2013-06-24 17:45:46 +02:00
|
|
|
{/if}
|
2013-11-02 23:08:12 +01:00
|
|
|
</div>
|
|
|
|
{if $message.type == $messageTypes.ATTACHMENT}
|
2014-02-08 03:21:25 +01:00
|
|
|
<small class="framed timsChatAvatarExtraIcon">
|
2013-11-02 23:08:12 +01:00
|
|
|
<span class="icon icon16 icon-paperclip"></span>
|
|
|
|
</small>
|
2013-06-23 18:48:48 +02:00
|
|
|
{/if}
|
|
|
|
</div>
|
2014-02-08 03:21:25 +01:00
|
|
|
<div class="timsChatInnerMessage">
|
|
|
|
<span class="timsChatUsernameContainer">
|
2013-06-24 17:45:46 +02:00
|
|
|
{@$message.formattedUsername}
|
|
|
|
|
2014-02-08 03:21:25 +01:00
|
|
|
{if $message.type == $messageTypes.WHISPER}
|
2014-02-27 19:13:42 +01: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 23:12:22 +01:00
|
|
|
<span class="receiver">{$message.additionalData.receiverUsername}</span>
|
2013-06-24 17:45:46 +02:00
|
|
|
{/if}
|
2013-06-23 18:48:48 +02:00
|
|
|
</span>
|
2013-06-24 17:45:46 +02:00
|
|
|
|
|
|
|
<time>{@$message.formattedTime}</time>
|
|
|
|
|
2013-11-02 23:08:12 +01: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-02 00:33:45 +01:00
|
|
|
<ul class="timsChatTextContainer">
|
|
|
|
<li class="timsChatText" data-message-id="{@$message.messageID}">
|
2013-06-24 17:45:46 +02:00
|
|
|
{if $message.isFollowUp} <time>{@$message.formattedTime}</time>{/if}
|
|
|
|
{@$message.formattedMessage}
|
2014-03-02 00:33:45 +01:00
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.mark{/lang}"/>
|
2013-06-24 17:45:46 +02:00
|
|
|
</li>
|
2013-06-23 18:48:48 +02:00
|
|
|
</ul>
|
2014-03-02 00:33:45 +01:00
|
|
|
|
2014-06-21 18:54:04 +02:00
|
|
|
<input type="checkbox" class="timsChatMessageGroupMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.markAll{/lang}" />
|
2014-09-20 21:57:17 +02:00
|
|
|
{else}
|
2014-03-02 20:02:50 +01:00
|
|
|
<div class="timsChatTextContainer">
|
2014-09-20 21:57:17 +02:00
|
|
|
<div class="timsChatText" data-message-id="{@$message.messageID}">
|
2014-03-02 20:02:50 +01:00
|
|
|
{@$message.formattedMessage}
|
|
|
|
|
|
|
|
<input type="checkbox" class="timsChatMessageMarker jsTooltip" value="{@$message.messageID}" title="{lang}chat.global.mark{/lang}"/>
|
2014-09-20 21:57:17 +02:00
|
|
|
</div>
|
2014-03-02 20:02:50 +01:00
|
|
|
</div>
|
2013-06-23 18:48:48 +02:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-30 22:48:34 +03:00
|
|
|
{/literal}
|