Sha256: f64fa7b88b40f7b698723e811b6753a4d062e10b319d165c6d57631758d49ed7

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

.grid__cell
  .card{ class: card_classes(:videos, local_assigns[:active]) }
    = link_to catalog_product_videos_path(model), class: 'card__header' do
      %span.card__header-text= t('workarea.admin.catalog_products.cards.videos.title')
      = inline_svg 'workarea/admin/icons/video.svg', class: 'card__icon'
    - if local_assigns[:active].blank?
      .card__body
        - if @product.videos.count < 1
          %p.card__empty-note= t('workarea.admin.catalog_products.cards.videos.no_videos')

          = link_to new_catalog_product_video_path(model), class: 'card__button' do
            %span.button.button--small= t('workarea.admin.catalog_products.cards.videos.add_button')
        - else
          %ul.list-reset
            - @product.videos.each do |video|
              %li
                %strong Embed ID
                = video[:embed_id]

          = link_to catalog_product_videos_path(model), class: 'card__button' do
            %span.button.button--small= t('workarea.admin.catalog_products.cards.videos.manage_button')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-product_videos-1.3.0 app/views/workarea/admin/catalog_products/_product_videos_card.html.haml
workarea-product_videos-1.2.3 app/views/workarea/admin/catalog_products/_product_videos_card.html.haml
workarea-product_videos-1.2.2 app/views/workarea/admin/catalog_products/_product_videos_card.html.haml