Sha256: 8cf4b1a6a6f8ef1fee61e52cb0e63b261a7816098727e7b150e3f1e1b4146ce7

Contents?: true

Size: 976 Bytes

Versions: 7

Compression:

Stored size: 976 Bytes

Contents

#comable-product
  - if @category
    .row
      = listed_categories @category.path, tag: :ol, class: 'breadcrumb'

  .row
    .category.col-sm-2
      h2
        = Comable.t('category')
      - if @category
        = listed_categories @category.path, class: 'category-path'
        = listed_categories @category.children
      - else
        = listed_categories Comable::Category.roots

    .products.col-sm-10
      - @products.each_slice(3) do |products|
        ul.row
          - products.each do |product|
            li.product.col-sm-4
              = link_to comable.product_path(product), class: 'thumbnail' do
                = image_tag product.image_url, width: '100%'
              .name
                = link_to product.name, comable.product_path(product)
              .caption
                = product.caption
              .price
                = number_to_currency product.price

      .text-center
        = paginate @products, theme: :comable_frontend

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comable_frontend-0.4.1 app/views/comable/products/index.slim
comable_frontend-0.4.0 app/views/comable/products/index.slim
comable_frontend-0.3.4 app/views/comable/products/index.slim
comable_frontend-0.3.3 app/views/comable/products/index.slim
comable_frontend-0.3.2 app/views/comable/products/index.slim
comable_frontend-0.3.1 app/views/comable/products/index.slim
comable_frontend-0.3.0 app/views/comable/products/index.slim