Sha256: 78ce4e9f2af013c6337ccba5c6e1fad0e1fda2c72cb16dfa2454ad8b5c398831

Contents?: true

Size: 503 Bytes

Versions: 12

Compression:

Stored size: 503 Bytes

Contents

<% fullsize_url = url_for(blob.variant(resize: '1920>')) %>
<a data-fancybox title="<%= strip_tags(caption) %>" href="<%= fullsize_url %>">
  <img src="<%= fullsize_url %>"
        srcset="
          <% [1920, 1600, 1440, 1366, 1280, 1024, 800, 768, 640, 360, 200].each do |size| %>
            <%= url_for(blob.variant(resize: "#{size}>", quality: 95)) %> <%= size%>w,
          <% end %>
        "
        sizes="100vw"
        alt="<%= alt.html_safe %>"
        class="img-responsive"
        >
</a>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
promethee-1.7.8 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.7 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.6 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.5 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.4 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.3 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.2 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.1 app/views/promethee/show/_image.srcset.html.erb
promethee-1.7.0 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.63 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.62 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.61 app/views/promethee/show/_image.srcset.html.erb