1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Clean up away icon logic in messageTypes.tpl

Co-authored-by: Maximilian Mader <max@bastelstu.be>
This commit is contained in:
Tim Düsterhus 2024-01-13 20:51:00 +01:00
parent 4bbd89d474
commit baeb850d45
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF

View File

@ -164,7 +164,13 @@
</small>
</div>
<span class="chatMessageIcon">
<span class="icon icon16 {if $__window.RegExp('^shower(?:ing)?$', 'i').test($message.payload.message)}fa-shower{else if $__window.RegExp('^bath(?:ing)?$', 'i').test($message.payload.message)}fa-bath{else}fa-user-o{/if}"></span>
{if $__window.RegExp('^shower(?:ing)?$', 'i').test($message.payload.message)}
<span class="icon icon16 fa-shower"></span>
{else if $__window.RegExp('^bath(?:ing)?$', 'i').test($message.payload.message)}
<span class="icon icon16 fa-bath"></span>
{else}
<span class="icon icon16 fa-user-o"></span>
{/if}
</span>
<div class="chatMessage">{lang}chat.messageType.{$message.objectType}{/lang}</div>
</div>