mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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.
14 lines
436 B
Handlebars
14 lines
436 B
Handlebars
{{#if is_empty_string_topic}}
|
|
<a class="message-link" href="{{href}}">
|
|
{{~!-- squash whitespace --~}}
|
|
#{{channel_name}} > <span class="empty-topic-display">{{topic_display_name}}</span> @ 💬
|
|
{{~!-- squash whitespace --~}}
|
|
</a>
|
|
{{~else}}
|
|
<a class="message-link" href="{{href}}">
|
|
{{~!-- squash whitespace --~}}
|
|
#{{channel_name}} > {{topic_display_name}} @ 💬
|
|
{{~!-- squash whitespace --~}}
|
|
</a>
|
|
{{~/if}}
|