Sha256: 1a1ef28e92258901cddbef1a57a97154da043c19a8d988ce147eb235fb73daed

Contents?: true

Size: 1.23 KB

Versions: 35

Compression:

Stored size: 1.23 KB

Contents

.insight
  .insight__date
    %span.insight__period= t('workarea.admin.insights.week_ending', date: insight.reporting_on.end_of_week.to_date.to_s(:long))
  .insight__heading= t('workarea.admin.insights.cold_searches.title')
  .insight__body
    %p.insight__note= t('workarea.admin.insights.cold_searches.info')
    %table
      %thead
        %tr
          %th.align-center= t('workarea.admin.insights.cold_searches.term')
          %th.align-center= t('workarea.admin.insights.cold_searches.growth')
          %th.align-center= t('workarea.admin.insights.cold_searches.weeks_revenue')
      %tbody
        - insight.results.each do |result|
          %tr
            %td.align-center
              = form_tag search_customizations_path, method: 'post' do
                = hidden_field_tag 'q', result.query_id, id: nil
                = button_tag result.query_id, class: 'button button--small'
            %td.align-center
              - unless result.previous_week_revenue.zero?
                %strong= number_to_currency(result.revenue_change)
                %span /
                = insights_number_to_percentage((result.revenue_change / result.previous_week_revenue) * 100)
            %td.align-center= number_to_currency(result.revenue_change)

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.34 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.33 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.32 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.31 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.30 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.29 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.28 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.27 app/views/workarea/admin/insights/_cold_searches.html.haml
workarea-admin-3.4.26 app/views/workarea/admin/insights/_cold_searches.html.haml