mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
empty_feed_notice: Show only query words for empty search results.
Previously, we included channel, topic, sender name and search qeries (if present) in the empty feed banner. With this commit, we will now not include channel, topic and sender name and we only display the search queries when there are excluded stop words. Fixes: #34872
This commit is contained in:
committed by
Tim Abbott
parent
ad4732adb5
commit
77cf174b1b
@@ -1,18 +1,9 @@
|
||||
<div class="empty_feed_notice">
|
||||
<h4 class="empty-feed-notice-title"> {{ title }} </h4>
|
||||
<div class="empty-feed-notice-description">
|
||||
{{#if search_data}}
|
||||
{{#if search_data.has_stop_word}}{{t "Some common words were excluded from your search." }} <br/>{{/if}}{{t "You searched for:" }}
|
||||
{{#if search_data.stream_query}}
|
||||
<span>channel: {{search_data.stream_query}}</span>
|
||||
{{/if}}
|
||||
{{#if search_data.topic_query}}
|
||||
{{#if search_data.is_empty_string_topic}}
|
||||
<span>topic: <span class="empty-topic-display">{{search_data.topic_query}}</span></span>
|
||||
{{else}}
|
||||
<span>topic: {{search_data.topic_query}}</span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if search_data}}
|
||||
{{#if search_data.has_stop_word}}
|
||||
<div class="empty-feed-notice-description">
|
||||
{{t "Common words were excluded from your search:" }} <br/>
|
||||
{{#each search_data.query_words}}
|
||||
{{#if is_stop_word}}
|
||||
<del>{{query_word}}</del>
|
||||
@@ -20,8 +11,11 @@
|
||||
<span class="search-query-word">{{query_word}}</span>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
{{{ html }}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else if html}}
|
||||
<div class="empty-feed-notice-description">
|
||||
{{{ html }}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user