Sha256: 084fef9d85e7beec63e6370389b3e86d894944618f3313e40dc6a309b5d8999b

Contents?: true

Size: 690 Bytes

Versions: 35

Compression:

Stored size: 690 Bytes

Contents

<% image_zoomable = true if image_zoomable.nil? # do not use ||= as image_zoomable may be "false" %>
<% fullsize_url = url_for(blob.variant(resize: '1920>')) %>

<% if image_zoomable %>
  <a data-fancybox title="<%= strip_tags(caption) %>" href="<%= fullsize_url %>">
<% end %>
    <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-fluid img-responsive"
        >

<% if image_zoomable %>
  </a>
<% end %>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
promethee-1.11.19 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.18 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.17 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.16 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.15 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.14 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.13 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.12 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.11 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.10 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.9 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.8 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.7 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.6 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.5 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.4 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.3 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.2 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.1 app/views/promethee/show/_image.srcset.html.erb
promethee-1.11.0 app/views/promethee/show/_image.srcset.html.erb