Sha256: 630d1a5228acdbdc217177a747474816a46925d24bcd81b980ac1f9d9ecd656c

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

.grid.grid--rev
  .grid__cell.grid__cell--25
    - if @autocomplete.searches.any?
      %span.search-autocomplete__heading
        - if @autocomplete.trending_searches?
          = t('workarea.storefront.search_autocomplete.trending_searches')
        - else
          = t('workarea.storefront.search_autocomplete.popular_searches')

      %ul.search-autocomplete__searches
        - @autocomplete.searches.each do |search|
          %li.search-autocomplete__searches-item
            = link_to search, search_path(q: search), class: 'search-autocomplete__searches-link'

    = append_partials('storefront.search_autocomplete_under_searches')

  .grid__cell.grid__cell--75
    - if @autocomplete.products.any?
      .search-autocomplete__products
        %span.search-autocomplete__heading
          - if @autocomplete.trending_products?
            = t('workarea.storefront.search_autocomplete.trending_products')
          - else
            = t('workarea.storefront.search_autocomplete.products_heading', term: @autocomplete.query_string)

        .grid
          - @autocomplete.products.each do |product|
            .grid__cell.grid__cell--25
              .product-summary
                = render 'workarea/storefront/products/summary', product: product

    - if @autocomplete.content.customization_content_blocks_for('autocomplete').present?
      .autocomplete.content-autocomplete__content
        = render_content_blocks(@autocomplete.content.customization_content_blocks_for('autocomplete'))

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-search_autocomplete-1.0.2 app/views/workarea/storefront/searches/autocomplete.html.haml
workarea-search_autocomplete-1.0.1 app/views/workarea/storefront/searches/autocomplete.html.haml
workarea-search_autocomplete-1.0.0 app/views/workarea/storefront/searches/autocomplete.html.haml