mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
This commit reduces the selector scope and improves the CSS matching performance by avoiding tag-level filtering in the bookends CSS. This also removes the `.sub-unsub-message` class from the bookend as it served no additional support and the `.bookend`` class can be used directly instead to maintain the styling of this element.
33 lines
1.9 KiB
Handlebars
33 lines
1.9 KiB
Handlebars
{{! Client-side Handlebars template for rendering the trailing bookend. }}
|
|
<div class="{{#if is_trailing_bookend}}trailing_bookend {{/if}}bookend">
|
|
{{#if is_spectator}}
|
|
<span class="recent-topics-link bookend-label">
|
|
<a href="#recent">{{t "Browse recent conversations" }}</a>
|
|
</span>
|
|
{{else}}
|
|
<span class="stream-status bookend-label">
|
|
{{#if deactivated}}
|
|
{{t "This channel has been archived." }}
|
|
{{else if subscribed }}
|
|
{{#tr}}
|
|
You subscribed to <z-stream-name></z-stream-name>. <channel-settings-link></channel-settings-link>
|
|
{{#*inline "z-stream-name"}}{{> stream_privacy . }} {{stream_name}}{{/inline}}
|
|
{{#*inline "channel-settings-link"}} <a class="bookend-channel-settings-link" href="#channels/{{stream_id}}/{{stream_name}}/personal">{{t 'Manage channel settings'}}</a>{{/inline}}
|
|
{{/tr}}
|
|
{{else if just_unsubscribed }}
|
|
{{#tr}}
|
|
You unsubscribed from <z-stream-name></z-stream-name>. <channel-settings-link></channel-settings-link>
|
|
{{#*inline "z-stream-name"}}{{> stream_privacy . }} {{stream_name}}{{/inline}}
|
|
{{#*inline "channel-settings-link"}} <a class="bookend-channel-settings-link" href="#channels/{{stream_id}}/{{stream_name}}/general">{{t 'View in channel settings'}}</a>{{/inline}}
|
|
{{/tr}}
|
|
{{else}}
|
|
{{#tr}}
|
|
You are not subscribed to <z-stream-name></z-stream-name>. <subscribe-button></subscribe-button>
|
|
{{#*inline "z-stream-name"}}{{> stream_privacy . }} {{stream_name}}{{/inline}}
|
|
{{#*inline "subscribe-button"}} <a class="stream_sub_unsub_button">{{t 'Subscribe'}}</a>{{/inline}}
|
|
{{/tr}}
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
</div>
|