Files
zulip/static/templates/message_body.hbs
AnushaNathRoy 8da5edb7af status_emoji: Show status emoji in message_body.
Previously the emoji_status set by the user would only be seen a few
places, it was decided that it would be useful to show the
emoji_status in a few additional other places as well.

Use the status_emoji template to show the status emoji in the
message_body and also implement live update behavior.

With refactor and minor edits by Yash RE.

Co-authored-by: YashRE42 <33805964+YashRE42@users.noreply.github.com>
2022-02-11 13:02:56 -08:00

64 lines
1.9 KiB
Handlebars

<div class="message_top_line">
{{#unless status_message}}
<span class="message_sender sender_info_hover no-select">
{{#if include_sender}}
<span title="{{t 'View user profile' }} (u)">
{{> message_avatar ~}}
<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>
{{#if sender_is_bot}}
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}
</span>
{{/if}}
</span>
{{/unless}}
{{#if status_message}}
{{> me_message}}
{{/if}}
<span class="alert-msg pull-right"></span>
<a href="{{ msg/url }}" class="message_time{{#if msg.locally_echoed}} notvisible{{/if}}{{#if status_message}} status-time{{/if}}">
{{#unless include_sender}}
<span class="copy-paste-text">&nbsp;</span>
{{/unless}}
{{timestr}}
</a>
{{#if edited_alongside_sender}}
{{> edited_notice}}
{{/if}}
{{> message_controls}}
</div>
{{#unless status_message}}
{{#unless is_hidden}}
<div class="message_content rendered_markdown">
{{#if use_match_properties}}
{{rendered_markdown msg/match_content}}
{{else}}
{{rendered_markdown msg/content}}
{{/if}}
</div>
{{else}}
{{> message_hidden_dialog}}
{{/unless}}
{{/unless}}
{{#if edited_in_left_col}}
{{> edited_notice}}
{{/if}}
<div class="message_edit">
<div class="message_edit_form"></div>
</div>
<div class="message_expander message_length_controller" title="{{t 'Expand message (-)' }}">{{t "[More…]" }}</div>
<div class="message_condenser message_length_controller" title="{{t 'Show less' }} (-)">[{{t "Show less" }}]</div>
{{#unless is_hidden}}
<div class="message_reactions">{{> message_reactions }}</div>
{{/unless}}