mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
Updates the hash used for the recent conversations view to be "#recent" instead of "#recent_topics". We will need to keep the logic for handling "#recent_topics" permanently because users potentially have messages from Welcome Bot with links to that hash. Including "recent_topics" as a web_public_allowed_hash in hash_util.js can be changed once self-hosted servers cannot upgrade directly to Zulip 5.x from the current version. Fixes #23132.
32 lines
1.2 KiB
Handlebars
32 lines
1.2 KiB
Handlebars
{{! Client-side Mustache template for rendering the trailing bookend.}}
|
|
<div class="{{#if is_trailing_bookend}}trailing_bookend {{/if}}bookend sub-unsub-message">
|
|
{{#if is_spectator}}
|
|
<span class="recent-topics-link">
|
|
<a href="#recent">{{t "Browse recent conversations" }}</a>
|
|
</span>
|
|
{{else}}
|
|
<span class="stream-status">
|
|
{{#if deactivated}}
|
|
{{t "This stream has been deactivated" }}
|
|
{{else if subscribed }}
|
|
{{#tr}}You subscribed to stream {stream_name}{{/tr}}
|
|
{{else if just_unsubscribed }}
|
|
{{#tr}}You unsubscribed from stream {stream_name}{{/tr}}
|
|
{{else}}
|
|
{{#tr}}You are not subscribed to stream {stream_name}{{/tr}}
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
{{#if can_toggle_subscription}}
|
|
<div class="sub_button_row new-style">
|
|
<button class="button white rounded stream_sub_unsub_button {{#unless subscribed}}sea-green{{/unless}}" type="button" name="subscription">
|
|
{{#if subscribed}}
|
|
{{t 'Unsubscribe' }}
|
|
{{else}}
|
|
{{t 'Subscribe' }}
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|