Sha256: 0d78232a33de0c8be00a0a83ecfce189647229c97d16c0941181b37ae1ba249d

Contents?: true

Size: 1010 Bytes

Versions: 2

Compression:

Stored size: 1010 Bytes

Contents

.youtube-playlists-content-block
  - view_model.lists["items"].each do |item|
    .youtube-playlist__items
      .grid
        .grid__cell.grid__cell--50.grid__cell--75-at-medium
          %h2.heading.heading--4
            #{item["snippet"]["localized"]["title"]}
        .grid__cell.grid__cell--50.grid__cell--25-at-medium.align-right
          - if (item["video"]["items"].length > 2)
            = link_to t('workarea.storefront.play_lists.view_all'), youtube_video_path(item["id"], {list_name: item["snippet"]["localized"]["title"]}), class: "button button--secondary"
      -if item["snippet"]["localized"]["description"] != ""
        %p= item["snippet"]["localized"]["description"]
      .grid.youtube-playlist__video-items
        - item["video"] && item["video"]["items"].each do |video_item|
          -if video_item["snippet"]["title"] != "Private video"
            .grid__cell.grid__cell--33-at-medium
              = render 'workarea/storefront/youtube_videos/summary', video_item: video_item
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-youtube_playlists-0.1.2 app/views/workarea/storefront/content_blocks/_youtube_playlists.html.haml
workarea-youtube_playlists-0.1.1 app/views/workarea/storefront/content_blocks/_youtube_playlists.html.haml