2019-02-23 16:44:49 +01:00
|
|
|
<div class="message_top_line">
|
2019-03-08 18:01:47 +01:00
|
|
|
{{#unless status_message}}
|
|
|
|
<span class="message_sender sender_info_hover no-select">
|
2019-02-23 16:44:49 +01:00
|
|
|
{{#if include_sender}}
|
2020-04-16 03:25:07 +02:00
|
|
|
<span title="{{t 'View user profile' }} (u)">
|
2021-06-11 22:36:25 +02:00
|
|
|
{{> message_avatar ~}}
|
2022-02-05 19:13:05 +01:00
|
|
|
<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>
|
2019-03-08 18:01:47 +01:00
|
|
|
{{#if sender_is_bot}}
|
2021-04-29 02:13:54 +02:00
|
|
|
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
|
2019-03-08 18:01:47 +01:00
|
|
|
{{/if}}
|
2020-04-16 03:25:07 +02:00
|
|
|
</span>
|
2019-02-23 16:44:49 +01:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2019-03-08 18:01:47 +01:00
|
|
|
{{/unless}}
|
|
|
|
|
|
|
|
{{#if status_message}}
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> me_message}}
|
2019-03-08 18:01:47 +01:00
|
|
|
{{/if}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
|
|
|
<span class="alert-msg pull-right"></span>
|
|
|
|
|
2021-06-15 21:30:10 +02:00
|
|
|
<a href="{{ msg/url }}" class="message_time{{#if msg.locally_echoed}} notvisible{{/if}}{{#if status_message}} status-time{{/if}}">
|
2019-02-23 16:44:49 +01:00
|
|
|
{{#unless include_sender}}
|
|
|
|
<span class="copy-paste-text"> </span>
|
|
|
|
{{/unless}}
|
|
|
|
{{timestr}}
|
2021-06-15 21:30:10 +02:00
|
|
|
</a>
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2019-03-15 19:42:24 +01:00
|
|
|
{{#if edited_alongside_sender}}
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> edited_notice}}
|
2019-03-15 19:42:24 +01:00
|
|
|
{{/if}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> message_controls}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2019-03-07 15:23:57 +01:00
|
|
|
{{#unless status_message}}
|
message view: Hide messages sent by muted users.
* We hide the sender and reactions on messages sent by muted
users, and replace the content with a "This message was hidden"
dialog.
* Ideally, we should collapse a series of consequetive
messages sent by muted users into one such dialog, but
that could break the cursor behaviour and `near/<message_id`
links, so we as of now show one dialog per muted message.
* Because we hide the sender, there is a chance of the first
hidden message in a group looking like it was sent by the
author of the message above it. To tackle this, we intentionally
make the hidden message dialog float-left, so that it is clear
that this is a special type of message.
* For context, we still show the timestamp of the message.
* Starring, editing, deleting etc a message still work just like
before.
A further commit will add the ability to reveal a
hidden message.
2021-05-04 09:01:47 +02:00
|
|
|
{{#unless is_hidden}}
|
2021-11-20 13:25:41 +01:00
|
|
|
<div class="message_content rendered_markdown">
|
|
|
|
{{#if use_match_properties}}
|
|
|
|
{{rendered_markdown msg/match_content}}
|
|
|
|
{{else}}
|
|
|
|
{{rendered_markdown msg/content}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
message view: Hide messages sent by muted users.
* We hide the sender and reactions on messages sent by muted
users, and replace the content with a "This message was hidden"
dialog.
* Ideally, we should collapse a series of consequetive
messages sent by muted users into one such dialog, but
that could break the cursor behaviour and `near/<message_id`
links, so we as of now show one dialog per muted message.
* Because we hide the sender, there is a chance of the first
hidden message in a group looking like it was sent by the
author of the message above it. To tackle this, we intentionally
make the hidden message dialog float-left, so that it is clear
that this is a special type of message.
* For context, we still show the timestamp of the message.
* Starring, editing, deleting etc a message still work just like
before.
A further commit will add the ability to reveal a
hidden message.
2021-05-04 09:01:47 +02:00
|
|
|
{{else}}
|
|
|
|
{{> message_hidden_dialog}}
|
|
|
|
{{/unless}}
|
2019-03-07 15:23:57 +01:00
|
|
|
{{/unless}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2019-03-15 19:42:24 +01:00
|
|
|
{{#if edited_in_left_col}}
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> edited_notice}}
|
2019-02-23 16:44:49 +01:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="message_edit">
|
|
|
|
<div class="message_edit_form"></div>
|
|
|
|
</div>
|
2021-04-17 12:58:08 +02:00
|
|
|
<div class="message_expander message_length_controller" title="{{t 'Expand message (-)' }}">{{t "[More…]" }}</div>
|
2021-07-06 02:46:40 +02:00
|
|
|
<div class="message_condenser message_length_controller" title="{{t 'Show less' }} (-)">[{{t "Show less" }}]</div>
|
message view: Hide messages sent by muted users.
* We hide the sender and reactions on messages sent by muted
users, and replace the content with a "This message was hidden"
dialog.
* Ideally, we should collapse a series of consequetive
messages sent by muted users into one such dialog, but
that could break the cursor behaviour and `near/<message_id`
links, so we as of now show one dialog per muted message.
* Because we hide the sender, there is a chance of the first
hidden message in a group looking like it was sent by the
author of the message above it. To tackle this, we intentionally
make the hidden message dialog float-left, so that it is clear
that this is a special type of message.
* For context, we still show the timestamp of the message.
* Starring, editing, deleting etc a message still work just like
before.
A further commit will add the ability to reveal a
hidden message.
2021-05-04 09:01:47 +02:00
|
|
|
|
|
|
|
{{#unless is_hidden}}
|
2019-07-11 04:05:28 +02:00
|
|
|
<div class="message_reactions">{{> message_reactions }}</div>
|
message view: Hide messages sent by muted users.
* We hide the sender and reactions on messages sent by muted
users, and replace the content with a "This message was hidden"
dialog.
* Ideally, we should collapse a series of consequetive
messages sent by muted users into one such dialog, but
that could break the cursor behaviour and `near/<message_id`
links, so we as of now show one dialog per muted message.
* Because we hide the sender, there is a chance of the first
hidden message in a group looking like it was sent by the
author of the message above it. To tackle this, we intentionally
make the hidden message dialog float-left, so that it is clear
that this is a special type of message.
* For context, we still show the timestamp of the message.
* Starring, editing, deleting etc a message still work just like
before.
A further commit will add the ability to reveal a
hidden message.
2021-05-04 09:01:47 +02:00
|
|
|
{{/unless}}
|