mirror of https://github.com/zulip/zulip.git
status_emoji: Remove extra space with Handlebars whitespace control.
This gets rendered into a comma-separated list, and the extra space was ending up before the comma. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f0945518ba
commit
36b8462796
|
@ -1,12 +1,12 @@
|
||||||
{{#if .}}
|
{{~#if . ~}}
|
||||||
{{#if emoji_alt_code}}
|
{{~#if emoji_alt_code ~}}
|
||||||
<span class="emoji_alt_code"> :{{emoji_name}}:</span>
|
<span class="emoji_alt_code"> :{{emoji_name}}:</span>
|
||||||
{{else if still_url}}
|
{{~else if still_url ~}}
|
||||||
<img src="{{still_url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-still-url="{{still_url}}" data-tippy-content=":{{emoji_name}}:" />
|
<img src="{{still_url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-still-url="{{still_url}}" data-tippy-content=":{{emoji_name}}:" />
|
||||||
{{else if url}}
|
{{~else if url ~}}
|
||||||
{{!-- note that we have no still_url --}}
|
{{~!-- note that we have no still_url --~}}
|
||||||
<img src="{{url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-tippy-content=":{{emoji_name}}:" />
|
<img src="{{url}}" class="emoji status-emoji status-emoji-name" data-animated-url="{{url}}" data-tippy-content=":{{emoji_name}}:" />
|
||||||
{{else if emoji_name}}
|
{{~else if emoji_name ~}}
|
||||||
<span class="emoji status-emoji status-emoji-name emoji-{{emoji_code}}" data-tippy-content=":{{emoji_name}}:"></span>
|
<span class="emoji status-emoji status-emoji-name emoji-{{emoji_code}}" data-tippy-content=":{{emoji_name}}:"></span>
|
||||||
{{/if}}
|
{{~/if ~}}
|
||||||
{{/if}}
|
{{~/if ~}}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<span class="user_status_icon_wrapper">
|
<span class="user_status_icon_wrapper">
|
||||||
<span class="user-name">{{name}}</span>
|
<span class="user-name">{{name}}</span>
|
||||||
{{> status_emoji status_emoji_info}}
|
{{~> status_emoji status_emoji_info ~}}
|
||||||
</span>
|
</span>
|
||||||
|
{{~!-- --~}}
|
||||||
|
|
Loading…
Reference in New Issue