Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Restore deleted file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Mar 13, 2024
1 parent ca66d8c commit d10ee33
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% thumbnail_path = SolrDocument.find(@collection.id).thumbnail_path %>
<% if thumbnail_path.include?("uploaded_collection_thumbnails") and File.exist? Rails.root.join("public#{::SolrDocument.find(@collection.id).thumbnail_path}") %>
<%= image_tag(thumbnail_path, class: "current-thumbnail") %>
<p>Current image: <strong><%= @thumbnail_filename %></strong></p>
<% else %>
No image found.
<% end %>

0 comments on commit d10ee33

Please sign in to comment.