rosa-build/app/views/search/_table.html.haml

10 lines
424 B
Plaintext
Raw Normal View History

- collection = instance_variable_get("@#{type}")
%table.tablesorter.bmargin5{:cellpadding => "0", :cellspacing => "0"}
%thead
%tr
%th #{t "layout.#{type}.list_header"} (#{collection.count})
%tbody
- collection.each do |c|
%tr
%td= render type.singularize, type.singularize.to_sym => c
2012-11-21 12:09:01 +00:00
= link_to t('layout.search.all'), search_index_path(:query => @query, :type => type) if collection.present?