<div class="indicator"></div>
<span class="timestamp float-left">{{timestamp}}</span>

{{!-- Mod Icons --}}
{{#if isMsgModeratable}}
  <span class="mod-icons float-left">
    {{#if msgObject.deleted}}
      <em class="mod-icon float-left unban"></em>
    {{else}}
      {{#tipsy-wrapper gravity="n"}}<a class="mod-icon float-left tooltip delete" title="{{i18n 'Delete Message'}}" href="#" {{action timeoutUser msgObject.id}}>{{i18n 'Delete Message'}}</a>{{/tipsy-wrapper}}
    {{/if}}
  </span>
{{/if}}
{{!-- /Mod Icons --}}

<span class="badges float-left">
  {{#each badgeSet as |badge|}}
    <a href={{badge.targetUrl}} rel="noopener" target="_blank">
      {{#tipsy-wrapper gravity="n" selector="img" ~}}
        <img src={{badge.src}} srcset={{badge.srcSet}} class="badge tooltip" title={{badge.title}}>
      {{/tipsy-wrapper}}
    </a>
  {{/each}}
</span>
<span class="from" style={{fromStyle}}>
  {{~ fromText ~}}
</span>
<span class="colon">:</span>
{{#if msgObject.deleted ~}}
  <span class="deleted">&lt;{{i18n 'message deleted'}}&gt;</span>
{{~ else ~}}
  <span class="message" style={{messageStyle}}>
    {{#each tokenizedMessage as |token|~}}
      {{~#if (eq token.type "bits")}}
        {{#if canRenderBits}}
          {{bits/chat-token amount=token.amount prefix=token.prefix}}
        {{else}}
          {{token.prefix}}{{token.amount}}
        {{/if}}
      {{else if (eq token.type "emoticon")}}
        {{#tipsy-wrapper gravity="n" selector="img"}}<img class="emoticon tooltip" src='{{token.imgSrc}}' alt="{{token.altText}}" title="{{token.altText}}" srcset="{{token.srcSet}}">{{/tipsy-wrapper}}
      {{else if (eq token.type "link")}}
        {{#if token.isDeleted}}
          &lt;{{i18n 'deleted link'}}&gt;
        {{else}}
          <a href="{{concat (if token.isMailTo 'mailto:' "") token.link}}" rel="noopener noreferrer" target="_blank">{{token.text}}</a>
        {{/if}}
      {{else if (eq token.type "mention")}}
        <span class='{{if token.isOwnMessage "mentioning" "mentioned"}}'>{{token.user}}</span>
      {{else}}
        {{token.text}}
      {{/if~}}
    {{~/each}}
  </span>
{{~/if}}
