Files
zulip/web/templates/channel_message_link.hbs
Prakhar Pratyush 0788942a68 message_link: Add support for empty string topic in syntax.
This commit adds support for empty string as a valid topic name
in syntax for linking to channel messages.

The server stores it after empty string is replaced with
`realm_empty_topic_display_name` and wrapped with an <em> tag.

The web client parses the rendered_content and updates
the topic_name part in the HTML with topic_name in user's language
+ wraps it in a <span> tag with 'empty-topic-display' css class.
2025-01-31 14:23:15 -08:00

14 lines
436 B
Handlebars

{{#if is_empty_string_topic}}
<a class="message-link" href="{{href}}">
{{~!-- squash whitespace --~}}
#{{channel_name}} &gt; <span class="empty-topic-display">{{topic_display_name}}</span> @ 💬
{{~!-- squash whitespace --~}}
</a>
{{~else}}
<a class="message-link" href="{{href}}">
{{~!-- squash whitespace --~}}
#{{channel_name}} &gt; {{topic_display_name}} @ 💬
{{~!-- squash whitespace --~}}
</a>
{{~/if}}