neon_arch commited on
Commit
69adc89
1 Parent(s): 173c6ba

✨ feat: add new error message to show when no engines are selected (#227)

Browse files
Files changed (1) hide show
  1. public/templates/search.html +15 -1
public/templates/search.html CHANGED
@@ -45,6 +45,20 @@
45
  </div>
46
  <img src="./images/filter.png" alt="Image of a paper inside a funnel" />
47
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  {{else}}
49
  <div class="result_not_found">
50
  <p>Your search - {{{this.pageQuery}}} - did not match any documents.</p>
@@ -56,7 +70,7 @@
56
  </ul>
57
  <img src="./images/no_results.gif" alt="Man fishing gif" />
58
  </div>
59
- {{/if}} {{/if}} {{/if}}
60
  </div>
61
  <div class="page_navigation">
62
  <button type="button" onclick="navigate_backward()">
 
45
  </div>
46
  <img src="./images/filter.png" alt="Image of a paper inside a funnel" />
47
  </div>
48
+ {{else}} {{#if noEnginesSelected}}
49
+ <div class="result_engine_not_selected">
50
+ <div class="description">
51
+ <p>
52
+ No results could be fetched for your search "<span class="user_query">{{{this.pageQuery}}}</span>" .
53
+ </p>
54
+ <p class="description_paragraph">Dear user,</p>
55
+ <p class="description_paragraph">
56
+ No results could be retrieved from the upstream search engines as no
57
+ upstream search engines were selected from the settings page.
58
+ </p>
59
+ </div>
60
+ <img src="./images/no_selection.png" alt="Image of a white cross inside a red circle" />
61
+ </div>
62
  {{else}}
63
  <div class="result_not_found">
64
  <p>Your search - {{{this.pageQuery}}} - did not match any documents.</p>
 
70
  </ul>
71
  <img src="./images/no_results.gif" alt="Man fishing gif" />
72
  </div>
73
+ {{/if}} {{/if}} {{/if}} {{/if}}
74
  </div>
75
  <div class="page_navigation">
76
  <button type="button" onclick="navigate_backward()">