Sha256: eca9991691cecc51e51c84b83903e1ae95d0433c793c67ad7bc997fa29360e31

Contents?: true

Size: 1.81 KB

Versions: 31

Compression:

Stored size: 1.81 KB

Contents

.insight
  .insight__date
    %span.insight__period= insight.reporting_on.end_of_week.to_date.to_s(:long)
  .insight__heading= t('workarea.admin.insights.most_discounted_products.title')
  .insight__body
    %p.insight__note= t('workarea.admin.insights.most_discounted_products.info')
    .grid.grid--large.grid--center
      - insight.results.each do |result|
        .grid__cell.grid__cell--50.grid__cell--25-at-wide.align-center
          .insight__product
            - if result.product.blank?
              = image_tag(product_image_url(Workarea::Catalog::ProductPlaceholderImage.cached, :small), alt: result.product_id, class: 'insight__product-image')
            - else
              = link_to catalog_product_path(result.product) do
                = image_tag(product_image_url(result.product.primary_image, :small), alt: result.product.name, class: 'insight__product-image')
            .insight__product-name
              - if result.product.blank?
                = result.product_id
              - else
                = link_to result.product.name, catalog_product_path(result.product)
          .insight__product-info
            %strong= insights_number_to_percentage(result.average_discount)
            = t('workarea.admin.insights.most_discounted_products.average_discount')
          .insight__product-info
            %strong= insights_number_to_percentage(result.discount_rate)
            = t('workarea.admin.insights.most_discounted_products.discount_rate')
          .insight__product-info
            %strong= number_with_delimiter(result.units_sold)
            = t('workarea.admin.insights.most_discounted_products.units_sold')
          .insight__product-info
            %strong= insights_number_to_percentage(result.conversion_rate)
            = t('workarea.admin.insights.most_discounted_products.conversion_rate')

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
workarea-admin-3.5.9 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.31 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.30 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.29 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.6 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.28 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.5 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.27 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.4 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.26 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.3 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.25 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.2 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.24 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.1 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.23 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.4.22 app/views/workarea/admin/insights/_most_discounted_products.html.haml
workarea-admin-3.5.0 app/views/workarea/admin/insights/_most_discounted_products.html.haml