Sha256: 42af8b880701007586ef39967033ce15071fa76a72d050d9925f5de379aaa4a6
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
- features = Features::ExtraFeature.sorted .widget.widget_extras .widget_title span = widget_header(widget) .widget_content - if @structure.try(:service_page?) - base = { base: @structure.service_info.service_rate } - @structure.service_info.extra_features.each do |feature| .extras_item span = feature.title p - if feature.feature_type.options.try(:[], :display_static_pricing) sup $ = feature.price_type.calc feature.price, feature.attributes.reverse_merge(base) = I18n.t :per_word, scope: [:layout, :extras] - else = raw ('+' + feature.price_type.format(feature.price)).gsub('+$', '<sup>$</sup>') - else - features.each do |feature| .extras_item ng-hide='features && features.extras && features.extras.length > 0' span = feature.title p = raw feature.extra_cost.gsub('$', '<sup>$</sup>') - if @structure.try(:structure_type) == StructureType.prices .extras_item.ng-cloak ng-repeat="feature in features.extras" span ng-bind="feature.title" p ng-bind-html="price.formattedExtraFeaturePrice(feature, '#{I18n.t :per_word, scope: [:layout, :extras]}')"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/cells/widgets/parts/_extras.html.slim |