فهرست منبع

[search] Adding empty search result message

Romain Rigaux 11 سال پیش
والد
کامیت
faec4ff
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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>