[PATCH 2/2] BZ 791262 added no_results row if search returns no results
Imre Farkas
ifarkas at redhat.com
Wed Feb 22 10:20:03 UTC 2012
On 02/21/2012 04:38 PM, Tzu-Mainn Chen wrote:
> ---
> 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
ACK to the patchset
More information about the aeolus-devel
mailing list