Sha256: 6579989ccd1b45d3f925f4351407930c94626024d391167e1ca6cc4cb9ad1464

Contents?: true

Size: 1.46 KB

Versions: 62

Compression:

Stored size: 1.46 KB

Contents

.taxonomy-content-block

  - if view_model.left_image?
    .taxonomy-content-block__container
      = render_image_with_link(view_model.find_asset(image).url, image_alt, 'taxonomy-content-block', image_link)

  .taxonomy-content-block__container{ class: ('taxonomy-content-block__container--without-image' unless image.present? )}
    - if view_model.data[:header].present?
      %span.taxonomy-content-block__menu-heading= view_model.data[:header]

    %ul.taxonomy-content-block__menu
      - if view_model.show_starting_taxon?
        %li.taxonomy-content-block__menu-item.taxonomy-content-block__menu-item--start
          - if view_model.starting_taxon.placeholder?
            = view_model.starting_taxon.name
          - else
            = link_to view_model.starting_taxon.name, storefront_path_for(view_model.starting_taxon), data: { analytics: primary_navigation_analytics_data(view_model.starting_taxon).to_json }, class: 'taxonomy-content-block__menu-link'
      - view_model.taxons.each do |taxon|
        %li.taxonomy-content-block__menu-item
          - if taxon.placeholder?
            = taxon.name
          - else
            = link_to taxon.name, storefront_path_for(taxon), data: { analytics: primary_navigation_analytics_data(taxon).to_json }, class: 'taxonomy-content-block__menu-link'

  - if view_model.right_image?
    .taxonomy-content-block__container
      = render_image_with_link(view_model.find_asset(image).url, image_alt, 'taxonomy-content-block', image_link)

Version data entries

62 entries across 62 versions & 1 rubygems

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