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.
This commit is contained in:
Hemant Umre 2022-11-30 01:08:07 +05:30 committed by Tim Abbott
parent eb3674362a
commit f7c6d1dd77
2 changed files with 8 additions and 0 deletions

View File

@ -316,6 +316,7 @@ li.show-more-topics {
}
}
#login-link-container,
#subscribe-to-more-streams {
text-decoration: none;
margin: 5px auto 5.5px 10px;

View File

@ -101,6 +101,13 @@
{{#unless is_guest }}
<div id="subscribe-to-more-streams"></div>
{{/unless}}
<div id="login-link-container" class="only-visible-for-spectators">
<a class="login_button">
<i class="fa fa-sign-in" aria-hidden="true"></i>
{{~!-- squash whitespace --~}}
{{t 'Log in to browse more streams'}}
</a>
</div>
</div>
</div>
</div>