Sha256: 3895240b9cccfaf1765deeb62649fcb49967650cae6d4aae164fcd7d7a2d27c0

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

- if @product.videos.present?
  - @product.videos.each do |video|
    .product-video
      - if video.display_option == 'dialog'
        = link_to t('workarea.storefront.products.watch_this_video'), product_video_path(@product.id, video.id), data: { dialog_button: { dialogOptions: { uiDialogOptions: { dialogClass: 'ui-dialog-video' } } } }, class: "product-video__dialog-link"
      - elsif video.display_option == 'embedded'
        .product-video__container
          %iframe.product-video__iframe{ video.iframe_attrs }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-product_videos-1.3.0 app/views/workarea/storefront/products/_video_link.html.haml
workarea-product_videos-1.2.3 app/views/workarea/storefront/products/_video_link.html.haml
workarea-product_videos-1.2.2 app/views/workarea/storefront/products/_video_link.html.haml