app/helpers/admin/features_helper.rb
#
# Creates a message for the item list (index view)
# using the context feature and search filter value
#
Creates a message for the item list (index view)
using the context feature and search filter value
Creates a message for the item list ( index view ) using the context feature and search filter value
def context_search_message(context_feature)
    messages = []
    unless context_feature.nil?
      messages << "#{f_label(context_feature)} and descendants"
    end
    unless params[:filter].blank?
      messages << "<strong class='message'>[filter = #{h(params[:filter])}]</strong>"
    end
    if messages.blank?
      messages << 'Showing all'
    end
    messages.join(' ') if messages.size > 0
  end
def context_search_message ( context_feature ) messages = [ ] unless context_feature . nil? messages << "#{f_label(context_feature)} and descendants" end unless params [ :filter ] . blank? messages << "<strong class='message'>[filter = #{h(params[:filter])}]</strong>" end if messages . blank? messages << 'Showing all' end messages . join ( ' ' ) if messages . size > 0 end
Creates a message for the item list (index view)
using the context feature and search filter value
Creates a message for the item list ( index view ) using the context feature and search filter value
context_feature
<not_specific>