Sha256: 93b197b99d9b891affafd692ae6dca13ef2ffa7105f995f693fae6b2eacb4de9
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
- @title = t('workarea.storefront.play_lists.play_list') - content_for :breadcrumbs do %p.breadcrumbs__node-group %span.breadcrumbs__node = link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link' %span.breadcrumbs__node %span.breadcrumbs__text= t('workarea.storefront.play_lists.youtude_videos') .view.youtube-playlist - if @youtube .grid .grid__cell.grid__cell--60-at-medium %h1.heading.heading--3.heading--upcase= t('workarea.storefront.play_lists.play_list') .grid__cell.grid__cell--40-at-medium = render 'workarea/storefront/youtube_videos/pagination', data: @youtube, url_path: youtube_videos_path() - @youtube["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 = render 'workarea/storefront/youtube_videos/pagination', data: @youtube, url_path: youtube_videos_path() - else %p= t('workarea.storefront.play_lists.no_videos')
Version data entries
2 entries across 2 versions & 1 rubygems