mirror of https://github.com/zulip/zulip.git
templates: Clean up recipient_row.hbs.
This commit is contained in:
parent
d09997f32e
commit
981a8d0189
|
@ -14,7 +14,8 @@
|
||||||
{{#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>
|
<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}}
|
{{/if}}
|
||||||
{{display_recipient}}</a>
|
{{display_recipient}}
|
||||||
|
</a>
|
||||||
|
|
||||||
{{! hidden narrow icon for copy-pasting }}
|
{{! hidden narrow icon for copy-pasting }}
|
||||||
<span class="copy-paste-text">></span>
|
<span class="copy-paste-text">></span>
|
||||||
|
@ -31,8 +32,8 @@
|
||||||
{{topic}}
|
{{topic}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</a>
|
||||||
<!-- The missing whitespace on the next line is a hack; ideally, would be user-select: none. -->
|
</span>
|
||||||
</span><span class="recipient_bar_controls no-select">
|
<span class="recipient_bar_controls no-select">
|
||||||
<span class="topic_edit hidden-for-spectators">
|
<span class="topic_edit hidden-for-spectators">
|
||||||
<span class="topic_edit_form" id="{{id}}"></span>
|
<span class="topic_edit_form" id="{{id}}"></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -145,19 +145,10 @@ def check_handlebar_templates(templates: Iterable[str], fix: bool) -> None:
|
||||||
# Check all our handlebars templates.
|
# Check all our handlebars templates.
|
||||||
templates = [fn for fn in templates if fn.endswith(".hbs")]
|
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:
|
for fn in templates:
|
||||||
if fn in IGNORE_FILES:
|
|
||||||
continue
|
|
||||||
validate(fn=fn, check_indent=True)
|
validate(fn=fn, check_indent=True)
|
||||||
|
|
||||||
for fn in templates:
|
for fn in templates:
|
||||||
if fn in IGNORE_FILES:
|
|
||||||
continue
|
|
||||||
if not validate_indent_html(fn, fix):
|
if not validate_indent_html(fn, fix):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue