Sha256: 7c03b2759b461c3bd7f0bdee095633ddd73e89d1293cffdb918f0ff6a4cf3521

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

<% width = 36 if width.blank? %>
<%  if document.image? || document.pdf? || document.video? %>
  <% path = sufia.download_path(document["id"], {datastream_id: 'thumbnail'}) %>
<% else %>
  <% path = "/assets/default.png" %>
<% end %>
<%= link_to image_tag(path, {width: width}), sufia.generic_file_path(document) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-3.5.0 app/views/dashboard/_index_partials/_thumbnail_display.html.erb