Sha256: 46c2f5bedd5e547859586e61221856c1869373665fb193529fa9cce6254d30d1

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

<% if file.send(tab.uploader).to_s =~ /(jpg|jpeg|png|gif)$/i %>
  <% url = file.send(tab.uploader).normalized.blank? ? file.send(tab.uploader).url : file.send(tab.uploader).normalized.url%>
  <%= link_to image_tag(url), file.send(tab.uploader).url %>
<% else %>
  <%= link_to file.send(tab.uploader).url, file.send(tab.uploader).url %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolita-file-upload-0.2.7 app/views/components/lolita/configuration/tab/files/_file.html.erb