forked from bofh/fetsite
11 lines
277 B
Plaintext
11 lines
277 B
Plaintext
<% data_ext = attachment.datei.file.try(:extension).try(:downcase) %>
|
|
|
|
|
|
<% if (!["jpg","png","jpeg"].find_index(data_ext).nil?) %>
|
|
<%= image_tag attachment.datei.thumb.url %>
|
|
<% else %>
|
|
|
|
<%= image_tag "pdf-logo.jpg" %>
|
|
<% end %>
|
|
<%= attachment.name %>
|