Browse Source

[search] Adding empty search result message

Romain Rigaux 11 năm trước cách đây
mục cha
commit
faec4ff
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      apps/search/src/search/templates/search2.mako

+ 4 - 0
apps/search/src/search/templates/search2.mako

@@ -370,6 +370,10 @@ ${ commonheader(_('Search'), "search", user, "60px") | n,unicode }
   <!-- /ko -->
 
   <div style="overflow-x: auto">
+    <div data-bind="visible: $root.results().length == 0">
+      ${ _('Your search did not match any documents.') }
+    </div>
+    
 	<!-- ko if: $root.collection.template.isGridLayout() -->
     <table id="result-container" data-bind="visible: !($root.isRetrievingResults())" style="margin-top: 0">
       <thead>