Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list_view: Mark trailing bookend using a new variable.
Aman Agrawal93a03dcf3a7c
diff --git a/static/js/message_list_view.js b/static/js/message_list_view.jsindex 119ed1e7a2d..c0efd396fdc 100644--- a/static/js/message_list_view.js+++ b/static/js/message_list_view.js@@ -1303,6 +1303,8 @@ export class MessageListView {can_toggle_subscription,is_spectator,) {+ // This is not the only place we render bookends; see also the+ // partial in message_group.hbs, which do not set is_trailing_bookend.const rendered_trailing_bookend = $(render_bookend({stream_name,@@ -1311,6 +1313,7 @@ export class MessageListView {deactivated,just_unsubscribed,is_spectator,+ is_trailing_bookend: true,}),);rows.get_table(this.table_name).append(rendered_trailing_bookend);diff --git a/static/templates/bookend.hbs b/static/templates/bookend.hbsindex b8c9fdfd602..ffb255c0c44 100644--- a/static/templates/bookend.hbs+++ b/static/templates/bookend.hbs@@ -1,5 +1,5 @@{{! Client-side Mustache template for rendering the trailing bookend.}}-<div class="{{#if can_toggle_subscription}}trailing_bookend{{/if}} bookend sub-unsub-message">+<div class="{{#if is_trailing_bookend}}trailing_bookend {{/if}}bookend sub-unsub-message">{{#if is_spectator}}<span class="recent-topics-link"><a href="#recent_topics">{{t "Browse recent topics" }}</a>