[PATCH 2/2] BZ 791262 added no_results row if search returns no results

Tzu-Mainn Chen tzumainn at redhat.com
Tue Feb 21 15:38:20 UTC 2012


---
 src/app/views/layouts/_filter_table.html.haml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/app/views/layouts/_filter_table.html.haml b/src/app/views/layouts/_filter_table.html.haml
index 02b753d..29be530 100644
--- a/src/app/views/layouts/_filter_table.html.haml
+++ b/src/app/views/layouts/_filter_table.html.haml
@@ -19,6 +19,9 @@
             %th{:class => column[:class]}= check_box_tag :select_all, true, false, :class => 'select_all'
           -else
             %th{:class => column[:class]}= column[:name]
+      - if !rows.any?
+        %tr
+          %td{:colspan => columns.size}= t('search.no_results')
     = rows.collect {|row| capture_haml(row, &block)}.to_s.html_safe
 
   - if content_for? form_footer
-- 
1.7.6.5




More information about the aeolus-devel mailing list