2022-12-09 10:13:09 +01:00
|
|
|
{{#unless status_message}}
|
|
|
|
<span class="message_sender sender_info_hover no-select">
|
|
|
|
{{#if include_sender}}
|
|
|
|
<span title="{{t 'View user card' }} (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}}
|
|
|
|
{{#if edited_alongside_sender}}
|
|
|
|
{{> edited_notice}}
|
2019-02-23 16:44:49 +01:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2019-03-08 18:01:47 +01:00
|
|
|
{{/if}}
|
2022-12-09 10:13:09 +01:00
|
|
|
</span>
|
|
|
|
{{/unless}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#if status_message}}
|
|
|
|
{{> me_message}}
|
|
|
|
{{/if}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2022-12-09 10:13:09 +01:00
|
|
|
<span class="alert-msg"></span>
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2022-12-09 10:13:09 +01:00
|
|
|
<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"> </span>
|
|
|
|
{{/unless}}
|
|
|
|
{{timestr}}
|
|
|
|
</a>
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2022-12-09 10:13:09 +01:00
|
|
|
{{> message_controls}}
|
2019-02-23 16:44:49 +01:00
|
|
|
|
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}}
|
2023-01-19 09:55:13 +01:00
|
|
|
<div class="message_content rendered_markdown">
|
|
|
|
{{> message_hidden_dialog}}
|
|
|
|
</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}}
|
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}}
|