Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bookend: Only show links on the last bookend.
Aman Agrawalf5dfc43ce9d0
diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex fdc863e177a..9f55ed7c540 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -956,3 +956,12 @@ of the base style defined for a read-only textarea in dark mode. */padding: 8px 6px 8px 4px;}}++/* Only show links on the trailing bookend. */+.bookend-channel-settings-link {+ display: none;+}++.trailing_bookend .bookend-channel-settings-link {+ display: inline;+}diff --git a/web/templates/bookend.hbs b/web/templates/bookend.hbsindex 2aa50744555..dd94e1dd331 100644--- a/web/templates/bookend.hbs+++ b/web/templates/bookend.hbs@@ -12,13 +12,13 @@{{#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 href="#channels/{{stream_id}}/{{stream_name}}/personal">{{t 'Manage channel settings'}}</a>{{/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 href="#channels/{{stream_id}}/{{stream_name}}/general">{{t 'View in channel settings'}}</a>{{/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}}