Skip to content

Commit

Permalink
Merge pull request #71 from psu-stewardship/thum_fix
Browse files Browse the repository at this point in the history
removing width so catalog thumbnail does not get skewed
  • Loading branch information
jcoyne committed Apr 17, 2013
2 parents d99042a + 152af1e commit ce34c45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/dashboard/_index_partials/_thumbnail_display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ limitations under the License.
<%- width = 36 if width.blank? -%>
<% if (document.mime_type) %>
<% if document.image? %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width, :height=>height}), sufia.generic_file_path(document.noid) %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width}), sufia.generic_file_path(document.noid) %>
<% elsif document.pdf? %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width,:height=>height}),sufia.generic_file_path(document.noid) %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width}),sufia.generic_file_path(document.noid) %>
<% elsif document.video? %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width,:height=>height}),sufia.generic_file_path(document.noid) %>
<%= link_to image_tag(sufia.download_path(document["id"], {:datastream_id => 'thumbnail'}), {:width=>width}),sufia.generic_file_path(document.noid) %>
<% else %>
<%= link_to image_tag("/assets/default.png", {:width=>width,:height=>height}), sufia.generic_file_path(document) %>
<%= link_to image_tag("/assets/default.png", {:width=>width}), sufia.generic_file_path(document) %>
<% end %>
<% else %>
<%= link_to image_tag("/assets/default.png", {:width=>width,:height=>height}), sufia.generic_file_path(document) %>
<%= link_to image_tag("/assets/default.png", {:width=>width}), sufia.generic_file_path(document) %>
<% end %>

0 comments on commit ce34c45

Please sign in to comment.