Module: Para::SearchResultsHelper
- Defined in:
- app/helpers/para/search_results_helper.rb
Instance Method Summary collapse
Instance Method Details
#selected_item_for(result) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/para/search_results_helper.rb', line 3 def selected_item_for(result) content_tag(:tr, class: 'selected-item', data: { :'selected-item-id' => result.id }) do content_tag(:td, reorder_anchor, class: 'reorder-anchor-cell') + content_tag(:td, resource_name(result)) + content_tag(:td, class: 'remove-button-cell') do type: :button, class: 'btn btn-xs btn-danger', data: { :'remove-item' => true } do fa_icon 'arrow-left' end end end end |