Sha256: be567ce120c4b10b413b54e2b88c60c1adfb71292a631488dac3c0c3a794577c
Contents?: true
Size: 968 Bytes
Versions: 119
Compression:
Stored size: 968 Bytes
Contents
// Compile a summary of filters applied. Leave out anything not set. - filters = params.fetch(:q, {}).reject{ |key, value| value.blank? } .filter-summary table tr th Filters - if filters.empty? td None - else - if filters[:date].present? th Date: td= filters[:date] - if filters[:term].present? th Query: td= filters[:term] - if filters[:on_hotlist].present? th On Hotlist: td= yes_no(filters[:on_hotlist] == "true") - if filters[:action].present? th Action: td= Renalware::Renal::AKIAlertAction.find(filters[:action])&.to_s - if filters[:hospital_unit_id].present? th Site: td= Renalware::Hospitals::Unit.find_by(id: filters[:hospital_unit_id]) - if filters[:hospital_ward_id].present? th Ward: td= Renalware::Hospitals::Ward.find_by(id: filters[:hospital_ward_id])
Version data entries
119 entries across 119 versions & 1 rubygems