Sha256: e723b0f284ff6d98f866dcd4837c48b759d421a7c9c94e111ad6c3633379191d

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

- features = Features::FreeFeature.sorted
- symbol = TranslationCms.settings.base_rate.symbol

.widget.widget_features
  .widget_title
    span = widget_header(widget)
  .widget_content
    - features.in_groups_of(2).each do |feature_block|
      .feature_block
        - feature_block.each do |feature|
          .feature_item
            - if feature
              p => raw feature.title
              i
                => I18n.t(:for, scope: [:sidebar, :free_features])
                span
                  strong => number_to_currency(feature.price, unit: symbol)
              b = I18n.t(:free, scope: [:sidebar, :free_features])

  .free_features_info
    p
      => I18n.t(:get_all, scope: [:sidebar, :free_features])
      => I18n.t(:for, scope: [:sidebar, :free_features])
      br
      span = number_to_currency(features.map(&:price).sum, unit: symbol)
      b = I18n.t(:free, scope: [:sidebar, :free_features])

    = link_to I18n.t(:button, scope: [:sidebar, :free_features]), new_order_path, class: "button"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/cells/widgets/parts/_features.html.slim