mirror of https://github.com/zulip/zulip.git
templates: Clean up recipient_row.hbs.
This commit is contained in:
parent
d09997f32e
commit
981a8d0189
|
@ -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 "{display_recipient}"{{/tr}}">
|
||||
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}}
|
||||
<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">></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 "{display_recipient}", topic "{topic}"{{/tr}}">
|
||||
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}}
|
||||
</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>
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue