mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
A separate outer span with the title text needs to be added because: (1) The default bootstrap popover behavior takes the title as the popover title, if provided. (2) We need to avoid having the title area be too big in the me_message template. Fixes #12769. Co-Author-By: Vaibhav <vrongmeal@gmail.com>
51 lines
1.6 KiB
Handlebars
51 lines
1.6 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}}</span>
|
|
{{#if sender_is_bot}}
|
|
<i class="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>
|
|
|
|
<span class="message_time{{#if msg.locally_echoed}} notvisible{{/if}}{{#if status_message}} status-time{{/if}}">
|
|
{{#unless include_sender}}
|
|
<span class="copy-paste-text"> </span>
|
|
{{/unless}}
|
|
{{timestr}}
|
|
</span>
|
|
|
|
{{#if edited_alongside_sender}}
|
|
{{> edited_notice}}
|
|
{{/if}}
|
|
|
|
{{> message_controls}}
|
|
|
|
</div>
|
|
|
|
{{#unless status_message}}
|
|
<div class="message_content rendered_markdown">{{#if use_match_properties}}{{rendered_markdown msg/match_content}}{{else}}{{rendered_markdown msg/content}}{{/if}}</div>
|
|
{{/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 'Condense message (-)' }}">{{t "[Condense message]" }}</div>
|
|
<div class="message_reactions">{{> message_reactions }}</div>
|