Sha256: 8c5dbc867291164a22d919e6fdcaac4844002c08ae336b19e8be39e057a581f1

Contents?: true

Size: 1.19 KB

Versions: 34

Compression:

Stored size: 1.19 KB

Contents

.card{ class: card_classes(:product_rules, local_assigns[:active]) }
  = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__header' do
    %span.card__header-text= t('workarea.admin.product_rules.card.header')
    = inline_svg 'workarea/admin/icons/rules.svg', class: 'card__icon'

  - if local_assigns[:active].blank?
    .card__body
      - if product_list.product_rules.empty?
        %p.card__empty-note= t('workarea.admin.product_rules.card.description')
        %ul
          %li= t('workarea.admin.product_rules.card.example_1')
          %li= t('workarea.admin.product_rules.card.example_2')
          %li= t('workarea.admin.product_rules.card.example_3')

        = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__button' do
          %span.button.button--small= t('workarea.admin.product_rules.card.empty_button')

      - else
        %ul.list-reset
          - product_list.product_rules.each do |rule|
            %li= render_product_rule_summary_for(rule)
        = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__button' do
          %span.button.button--small= t('workarea.admin.product_rules.card.button')

Version data entries

34 entries across 34 versions & 1 rubygems

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