Sha256: 684ae1f858357c1ad4b787b0b72b012ef86e70ad6937a7ce9f4d42f9d9e7af3b

Contents?: true

Size: 506 Bytes

Versions: 13

Compression:

Stored size: 506 Bytes

Contents

<% fullsize_url = url_for(blob.variant(resize: '1920>')) %>
<a class="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

13 entries across 13 versions & 1 rubygems

Version Path
promethee-1.6.58 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.57 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.56 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.55 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.54 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.53 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.52 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.51 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.50 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.49 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.48 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.47 app/views/promethee/show/_image.srcset.html.erb
promethee-1.6.46 app/views/promethee/show/_image.srcset.html.erb