Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

templates: Clean up recipient_row.hbs.

Steve Howell981a8d018955
diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs
index 2415669a46a..b682a5be26d 100644
--- a/static/templates/recipient_row.hbs
+++ b/static/templates/recipient_row.hbs
@@ -4,17 +4,18 @@
<div class="message-header-contents">
{{! stream link }}
<a class="message_label_clickable narrows_by_recipient stream_label {{color_class}}"
- style="background: {{background_color}}; border-left-color: {{background_color}};"
- href="{{stream_url}}"
- title="{{#tr}}Narrow to stream &quot;{display_recipient}&quot;{{/tr}}">
+ style="background: {{background_color}}; border-left-color: {{background_color}};"
+ href="{{stream_url}}"
+ title="{{#tr}}Narrow to stream &quot;{display_recipient}&quot;{{/tr}}">
{{! invite only lock }}
{{#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>
+ <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}}
- <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>
+ <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}}</a>
+ {{display_recipient}}
+ </a>
{{! hidden narrow icon for copy-pasting }}
<span class="copy-paste-text">&gt;</span>
@@ -23,16 +24,16 @@
<span class="stream_topic">
{{! topic link }}
<a class="message_label_clickable narrows_by_topic"
- href="{{topic_url}}"
- title="{{#tr}}Narrow to stream &quot;{display_recipient}&quot;, topic &quot;{topic}&quot;{{/tr}}">
+ href="{{topic_url}}"
+ title="{{#tr}}Narrow to stream &quot;{display_recipient}&quot;, topic &quot;{topic}&quot;{{/tr}}">
{{#if use_match_properties}}
- {{{match_topic}}}
+ {{{match_topic}}}
{{else}}
- {{topic}}
+ {{topic}}
{{/if}}
</a>
- <!-- The missing whitespace on the next line is a hack; ideally, would be user-select: none. -->
- </span><span class="recipient_bar_controls no-select">
+ </span>
+ <span class="recipient_bar_controls no-select">
<span class="topic_edit hidden-for-spectators">
<span class="topic_edit_form" id="{{id}}"></span>
</span>
@@ -76,8 +77,8 @@
<div class="message-header-wrapper">
<div class="message-header-contents">
<a class="message_label_clickable narrows_by_recipient stream_label"
- href="{{pm_with_url}}"
- title="{{#tr}}Narrow to your private messages with {display_reply_to}{{/tr}}">
+ href="{{pm_with_url}}"
+ title="{{#tr}}Narrow to your private messages with {display_reply_to}{{/tr}}">
{{#tr}}You and {display_reply_to}{{/tr}}
</a>
diff --git a/tools/check-templates b/tools/check-templates
index 053dc4f243e..d3809a14171 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)