2023-06-14 21:03:37 +02:00
|
|
|
{{#if include_sender}}
|
|
|
|
{{> message_avatar ~}}
|
|
|
|
{{/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">
|
2023-09-30 12:56:04 +02:00
|
|
|
<span class="view_user_card_tooltip sender_name_text" data-tooltip-template-id="view-user-card-tooltip-template">
|
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>
|
2023-06-14 20:40:08 +02:00
|
|
|
{{#if edited_status_msg}}
|
|
|
|
{{> edited_notice}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#if edited_alongside_sender}}
|
2023-06-14 20:40:08 +02: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
|
|
|
|
2023-04-15 14:17:58 +02:00
|
|
|
<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message_time{{#if status_message}} status-time{{/if}}">
|
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)}}
|
|
|
|
<span 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}}
|
|
|
|
|
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>
|
2023-04-08 15:19:10 +02:00
|
|
|
|
|
|
|
<div class="message_length_controller">
|
|
|
|
<button type="button" class="message_expander message_length_toggle tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-expander-tooltip-template">{{t "Show more" }}</button>
|
|
|
|
<button type="button" class="message_condenser message_length_toggle tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-condenser-tooltip-template">{{t "Show less" }}</button>
|
|
|
|
</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}}
|