Sha256: 9acf05551aa5c9fa5690d58b617b34191649a26ec82475fc24593fd9d0d8d0d7

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

.product-listing.clearfix
  .empty(ng-if="products.length == 0")
    p
      | {{:: 'orders.no_products' | translate }}

  .product.col-lg-3.col-sm-6.col-xs-12(ng-repeat='product in products' ng-class-odd="'odd'" ng-class-even="'even'" ng-class="{'sold-out': !product.isAvailable()}")
    .col-lg-12
      h2.title
        a(ng-href='{{product.permalink}}' ng-bind="product.name")

      .with-variants(ng-show="product.hasVariants")
        variant-selection(product="product" variant="selectedVariants[product.id]" class="{'btn-group-xs': true}")

        p.sold-out(ng-if="selectedVariants[product.id] && !selectedVariants[product.id].isAvailable()")
          | {{:: 'products.sold_out' | translate }}

        add-to-cart-button(ng-if="!selectedVariants[product.id] || selectedVariants[product.id].isAvailable()"
                           product="product"
                           variant="selectedVariants[product.id]"
                           quantity=1
                           class="{'btn-primary': true}")

      .without-variants(ng-hide="product.hasVariants")
        p.sold-out(ng-if="!product.isAvailable()")
          | {{:: 'products.sold_out' | translate }}

        add-to-cart-button(ng-if="product.isAvailable()"
                           product="product"
                           variant="product.master"
                           quantity=1
                           class="{'btn-primary': true}")

      a(ng-href='{{product.permalink}}')
        img.img-responsive.full(ng-src="{{product.image.largeUrl}}")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprangular-0.1.0 app/assets/templates/products/list.html.slim