diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs index 2415669a46..b682a5be26 100644 --- a/static/templates/recipient_row.hbs +++ b/static/templates/recipient_row.hbs @@ -4,17 +4,18 @@
{{! stream link }} + 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}} - + {{/if}} {{#if is_web_public}} - + {{/if}} - {{display_recipient}} + {{display_recipient}} + {{! hidden narrow icon for copy-pasting }} > @@ -23,16 +24,16 @@ {{! topic link }} + href="{{topic_url}}" + title="{{#tr}}Narrow to stream "{display_recipient}", topic "{topic}"{{/tr}}"> {{#if use_match_properties}} - {{{match_topic}}} + {{{match_topic}}} {{else}} - {{topic}} + {{topic}} {{/if}} - - + + @@ -76,8 +77,8 @@
+ href="{{pm_with_url}}" + title="{{#tr}}Narrow to your private messages with {display_reply_to}{{/tr}}"> {{#tr}}You and {display_reply_to}{{/tr}} diff --git a/tools/check-templates b/tools/check-templates index 053dc4f243..d3809a1417 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -145,19 +145,10 @@ def check_handlebar_templates(templates: Iterable[str], fix: bool) -> None: # Check all our handlebars templates. templates = [fn for fn in templates if fn.endswith(".hbs")] - IGNORE_FILES = [ - # TODO: Add some exclude mechanism for the line-wrapping issue here. - "static/templates/recipient_row.hbs", - ] - for fn in templates: - if fn in IGNORE_FILES: - continue validate(fn=fn, check_indent=True) for fn in templates: - if fn in IGNORE_FILES: - continue if not validate_indent_html(fn, fix): sys.exit(1)