module C80Estate module PropertiesHelper def smiph_render_property_props(property) result = '' # area.item_props.each do |prop| # title = prop.prop_name.title # value = prop.value # uom = prop.prop_name.uom.title # result += "
#{title}
" # Цена за шт | Цена за м² result += "#{value} #{uom}
" # 1212,80 руб # старая цена # if item_as_hash['is_sale'] == 1 # if related.present? # related_value = item_as_hash['prop_'+related.to_s] # if related_value.present? # v = related_value.gsub(',', '.') # if v.to_f > 0 # result += "#{related_value} #{uom}
" # 1212,80 руб # end # end # end # end result += '