Sha256: e767a5ac578b29b5df7bb9d94a8232c118a1d8ebf12f44c8a9c444a35687814b

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

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