Sha256: 015fccc7f2abfd808157d34615d91335d18774895e5b9b074da17902ffe49218

Contents?: true

Size: 919 Bytes

Versions: 62

Compression:

Stored size: 919 Bytes

Contents

.insight
  .insight__date
    %span.insight__period= insight.reporting_on.strftime('%B %Y')
  .insight__heading= t('workarea.admin.insights.top_categories.title')
  .insight__body
    %p.insight__note= t('workarea.admin.insights.top_categories.info')
    %table
      %thead
        %tr
          %th= t('workarea.admin.insights.top_categories.category')
          %th.align-center= t('workarea.admin.insights.top_categories.of_revenue')
          %th.align-right= t('workarea.admin.insights.top_categories.revenue')
      %tbody
        - insight.results.each do |result|
          %tr
            %td
              - if result.category.blank?
                \-
              - else
                = link_to result.category.name, catalog_category_path(result.category)
            %td.align-center= insights_number_to_percentage result.percent_of_total
            %td.align-right= number_to_currency result.revenue

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.13 app/views/workarea/admin/insights/_top_categories.html.haml
workarea-admin-3.4.12 app/views/workarea/admin/insights/_top_categories.html.haml