templates: Improve comments for recipient_row.hbs.

We also squash some whitespace in the HTML, although
it's mostly irrelevant since you can't copy/paste
the text.
This commit is contained in:
Steve Howell 2021-12-04 12:23:58 +00:00 committed by Tim Abbott
parent cbcfbf83ae
commit 44f935695d
1 changed files with 7 additions and 4 deletions

View File

@ -7,14 +7,17 @@
style="background: {{background_color}}; border-left-color: {{background_color}};"
href="{{stream_url}}"
title="{{#tr}}Narrow to stream "{display_recipient}"{{/tr}}">
{{! invite only lock }}
{{#if invite_only}}
{{~! Icons for invite-only/web-public streams ~}}
{{~#if invite_only ~}}
<i class="fa fa-lock recipient-row-stream-icon" title="{{t 'This is a private stream' }}" aria-label="{{t 'This is a private stream' }}"></i>
{{/if}}
{{#if is_web_public}}
{{~#if is_web_public ~}}
<i class="fa fa-globe recipient-row-stream-icon" title="{{t 'This is a web public stream' }}" aria-label="{{t 'This is a web public stream' }}"></i>
{{/if}}
{{display_recipient}}
{{~! Recipient (e.g. stream/topic or topic) ~}}
{{~{display_recipient}~}}
</a>
{{! hidden narrow icon for copy-pasting }}