2022-12-09 10:13:09 +01:00
|
|
|
{{#unless status_message}}
|
2023-04-27 19:52:56 +02:00
|
|
|
<span class="message_sender no-select">
|
2022-12-09 10:13:09 +01:00
|
|
|
{{#if include_sender}}
|
2023-01-20 11:47:07 +01:00
|
|
|
<span>
|
2022-12-09 10:13:09 +01:00
|
|
|
{{> message_avatar ~}}
|
2023-04-27 19:52:56 +02:00
|
|
|
<span class="sender_info_hover sender_name auto-select" role="button" tabindex="0">
|
2023-01-24 10:00:45 +01:00
|
|
|
<span class="sender_name_padding view_user_card_tooltip"></span>
|
|
|
|
<span class="view_user_card_tooltip">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>
|
|
|
|
</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}}
|
|
|
|
{{#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
|
|
|
|
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
|
|
|
|
2023-03-17 19:54:09 +01:00
|
|
|
{{#if msg/locally_echoed}}
|
|
|
|
<span class="fa fa-circle-o-notch slow-send-spinner hidden"></span>
|
|
|
|
{{/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 22:57:58 +02:00
|
|
|
<div class="message_expander message_length_controller tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-expander-tooltip-template">{{t "[More…]" }}</div>
|
|
|
|
<div class="message_condenser message_length_controller tippy-zulip-delayed-tooltip" data-tooltip-template-id="message-condenser-tooltip-template">[{{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
|
|
|
|
2023-04-08 22:57:58 +02:00
|
|
|
<template id="message-expander-tooltip-template">
|
|
|
|
{{t 'Show more' }}
|
|
|
|
{{tooltip_hotkey_hints "-"}}
|
|
|
|
</template>
|
|
|
|
<template id="message-condenser-tooltip-template">
|
|
|
|
{{t 'Show less' }}
|
|
|
|
{{tooltip_hotkey_hints "-"}}
|
|
|
|
</template>
|
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}}
|