Sha256: 5a926285c1351e8b0b2576163ebc58ccb33f42384d8147c9ff1d09819a4393a3

Contents?: true

Size: 620 Bytes

Versions: 62

Compression:

Stored size: 620 Bytes

Contents

= link_to pricing_discount_path(model), class: (model.active? ? 'summary' : 'summary summary--inactive') do
  %span.summary__name= model.name
  .summary__info-container
    %span.summary__info
      - if model.active?
        #{local_time_ago(model.updated_at)}
      - else
        %span.summary__info-text-inactive= t('workarea.admin.catalog_products.summary.inactive')
    %span.summary__info= t('workarea.admin.pricing_discounts.summary.redemption', count: model.redemptions.size)
  %span.summary__type{ title: t('workarea.admin.pricing_discounts.summary.type') }= t('workarea.admin.pricing_discounts.summary.type')

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.13 app/views/workarea/admin/pricing_discounts/_summary.html.haml
workarea-admin-3.4.12 app/views/workarea/admin/pricing_discounts/_summary.html.haml