Sha256: fbbcc3cfa58c220bb6530c523cac14088b16a3b933ec51b660584732e13456b0

Contents?: true

Size: 1.05 KB

Versions: 62

Compression:

Stored size: 1.05 KB

Contents

.insight
  .insight__date
    %span.insight__period= insight.reporting_on.strftime('%B %Y')
  .insight__heading= t('workarea.admin.insights.top_discounts.title')
  .insight__body
    %p.insight__note= t('workarea.admin.insights.top_discounts.info')
    %table
      %thead
        %tr
          %th= t('workarea.admin.insights.top_discounts.discount')
          %th.align-center= t('workarea.admin.insights.top_discounts.of_redemptions')
          %th.align-center= t('workarea.admin.insights.top_discounts.orders')
          %th.align-right= t('workarea.admin.insights.top_discounts.revenue')
      %tbody
        - insight.results.each_with_index do |result, i|
          %tr
            %td
              - if result.discount.blank?
                \-
              - else
                = link_to result.discount.name, pricing_discount_path(result.discount)
            %td.align-center= insights_number_to_percentage result.percent_of_total
            %td.align-center= number_with_delimiter result.orders
            %td.align-right= number_to_currency result.revenue

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.45 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/insights/_top_discounts.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/insights/_top_discounts.html.haml