Sha256: ccacc14a74a5a8cca03874b88d690fda9110c7daaddf1784c07d60c72c0469a0

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

%header
  %h5 Categories
  %nav
    %ul
      - @categories.each do |cat|
        %li
          = link_to cat.name, category_path(cat)

%article
  %section
    - @products.each do |p|
      %figure
        - if p.assets.first
          = link_to (image_tag p.assets.first.url), product_path(p)
        - else
          = link_to (image_tag 'http://placekitten.com/g/500/500'), product_path(p)
        %figcaption
          %span= p.name
          %span= "$ #{p.original_price.to_i}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/views/gemgento/products/index.html.haml