From f7c6d1dd77e253539c5fa8bbbee51a7b2311b14e Mon Sep 17 00:00:00 2001 From: Hemant Umre Date: Wed, 30 Nov 2022 01:08:07 +0530 Subject: [PATCH] left_sidebar: Add login link to left sidebar for logged-out users. It can sometimes be unclear to logged-out users why they are not seeing all their subscribed streams in the left sidebar. To reduce the chances of users being confused, added a login link at the bottom of the streams list for logged-out users. To avoid leaking any information, the link is shown regardless of whether or not there are actually any additional streams in the organization. Fixes #22844. --- static/styles/left_sidebar.css | 1 + static/templates/left_sidebar.hbs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/static/styles/left_sidebar.css b/static/styles/left_sidebar.css index f4a0966f06..c8b1f31e86 100644 --- a/static/styles/left_sidebar.css +++ b/static/styles/left_sidebar.css @@ -316,6 +316,7 @@ li.show-more-topics { } } +#login-link-container, #subscribe-to-more-streams { text-decoration: none; margin: 5px auto 5.5px 10px; diff --git a/static/templates/left_sidebar.hbs b/static/templates/left_sidebar.hbs index 45b899caf3..c61d4eeb11 100644 --- a/static/templates/left_sidebar.hbs +++ b/static/templates/left_sidebar.hbs @@ -101,6 +101,13 @@ {{#unless is_guest }}
{{/unless}} +