Sha256: d2a3ee9264fdfab8133cde9e034c1c074324c64fe00449995f110f15895b852c

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

<%= cache @entry do %>

    <% page_media_breakpoints.each do |style, condition| %>
      <%= media_query(condition) do %>
        <% @entry.image_files.each do |image_file| %>
          .load_images .image_<%= image_file.id %> {
            background-image: url('<%= image_file.attachment.url(style) %>');
          }
        <% end %>

        <% @entry.video_files.each do |video_file| %>
          .load_images .video_poster_<%= video_file.id %> {
            background-image: url('<%= video_file.poster.url(style) %>');
          }
        <% end %>
      <% end %>
    <% end %>

    <% @entry.image_files.each do |image_file| %>
      .image_file_link_thumbnail_<%= image_file.id %> {
        background-image: url('<%= image_file.attachment.url(:link_thumbnail) %>');
      }

      .image_file_link_thumbnail_large_<%= image_file.id %> {
        background-image: url('<%= image_file.attachment.url(:link_thumbnail_large) %>');
      }
    <% end %>

    <% @entry.video_files.each do |video_file| %>
      .video_file_link_thumbnail_<%= video_file.id %> {
        background-image: url('<%= video_file.poster.url(:link_thumbnail) %>');
      }

      .video_file_link_thumbnail_large_<%= video_file.id %> {
        background-image: url('<%= video_file.poster.url(:link_thumbnail_large) %>');
      }
    <% end %>

    <%= render 'pageflow/entries/theming' %>

<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pageflow-0.4.0 app/views/pageflow/entries/show.css.erb
pageflow-0.3.0 app/views/pageflow/entries/show.css.erb
pageflow-0.2.1 app/views/pageflow/entries/show.css.erb
pageflow-0.2.0 app/views/pageflow/entries/show.css.erb