2023-06-14 21:03:37 +02:00
|
|
|
{{#if include_sender}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> message_avatar . ~}}
|
2023-06-14 21:03:37 +02:00
|
|
|
{{/if}}
|
2023-09-08 12:32:56 +02:00
|
|
|
<span class="message_sender">
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#if include_sender}}
|
2023-09-21 04:38:10 +02:00
|
|
|
<span class="sender_info_hover sender_name" role="button" tabindex="0">
|
2024-02-26 00:00:38 +01:00
|
|
|
<span class="view_user_card_tooltip sender_name_text" data-is-bot="{{sender_is_bot}}">
|
2023-09-13 19:30:52 +02:00
|
|
|
{{> user_full_name name=msg/sender_full_name should_add_guest_user_indicator=should_add_guest_indicator_for_sender}}
|
2023-06-14 20:40:08 +02:00
|
|
|
</span>
|
2023-09-30 12:56:04 +02:00
|
|
|
{{#unless status_message}}
|
|
|
|
{{> status_emoji msg/status_emoji_info}}
|
|
|
|
{{/unless}}
|
2023-01-24 10:00:45 +01:00
|
|
|
</span>
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#if sender_is_bot}}
|
|
|
|
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
|
|
|
|
{{/if}}
|
2023-06-14 20:40:08 +02:00
|
|
|
{{#if status_message}}
|
2023-09-21 04:38:10 +02:00
|
|
|
<span class="rendered_markdown status-message">{{rendered_markdown status_message}}</span>
|
2024-02-09 15:14:29 +01:00
|
|
|
{{#if message_edit_notices_for_status_message}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> edited_notice .}}
|
2023-06-14 20:40:08 +02:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2024-02-09 15:14:29 +01:00
|
|
|
{{#if message_edit_notices_alongside_sender}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> edited_notice .}}
|
2019-02-23 16:44:49 +01:00
|
|
|
{{/if}}
|
2019-03-08 18:01:47 +01:00
|
|
|
{{/if}}
|
2022-12-09 10:13:09 +01:00
|
|
|
</span>
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2024-03-28 16:49:46 +01:00
|
|
|
<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message-time">
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#unless include_sender}}
|
|
|
|
<span class="copy-paste-text"> </span>
|
|
|
|
{{/unless}}
|
|
|
|
{{timestr}}
|
|
|
|
</a>
|
2019-02-23 16:44:49 +01:00
|
|
|
|
2024-01-19 09:03:45 +01:00
|
|
|
{{#if (and (not msg/failed_request) msg/locally_echoed)}}
|
2024-02-29 11:23:43 +01:00
|
|
|
<span data-tooltip-template-id="slow-send-spinner-tooltip-template" class="fa fa-circle-o-notch slow-send-spinner{{#unless msg/show_slow_send_spinner }} hidden{{/unless}}"></span>
|
2023-03-17 19:54:09 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2024-09-11 05:31:26 +02:00
|
|
|
<div class="message_controls no-select">
|
|
|
|
{{#if msg/locally_echoed}}
|
|
|
|
{{#if msg/failed_request}}
|
|
|
|
{{> message_controls_failed_msg}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> message_controls .}}
|
2024-09-11 05:31:26 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
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
|
|
|
|
2024-02-09 15:14:29 +01:00
|
|
|
{{#if message_edit_notices_in_left_col}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> edited_notice .}}
|
2019-02-23 16:44:49 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2024-08-29 18:23:23 +02:00
|
|
|
<div class="message_length_controller"></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
|
|
|
|
2024-10-02 09:16:01 +02:00
|
|
|
{{#if (and (not is_hidden) msg.message_reactions)}}
|
2024-11-16 03:24:11 +01:00
|
|
|
{{> message_reactions . }}
|
2024-10-02 09:16:01 +02:00
|
|
|
{{/if}}
|