Sha256: c71575f6c627be01ca064d5b2c32cb3c3fdcb1fb91717dd4813f69afddf608f8

Contents?: true

Size: 1.33 KB

Versions: 13

Compression:

Stored size: 1.33 KB

Contents

<td style="margin-top: 3px; border-bottom: 2px solid #E1E1E1; width: 600px;font-weight: bold; color: #737373; font-size: 14px; padding: 7px 20px; vertical-align: middle;">
  <% 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, :style=>"width:300px; height 160px;"), url %>
  <% else %>
    <%= link_to file.send(tab.uploader).url, file.send(tab.uploader).url %>
  <% end %>
</td>
<td style="margin-top: 3px; border-bottom: 2px solid #E1E1E1; width: 55px;text-align: center; font-size: 14px; padding: 7px 20px; vertical-align: middle;">
  <%= link_to image_tag("lolita/file-upload/edit.png"),send(:"edit_lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id" => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:remote=>true %>
  <%= link_to image_tag("lolita/file-upload/delete-picture.png"),send(:"lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id" => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:method=>:delete,:remote=>true,:confirm=>"Are you sure?" %>
</td>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lolita-file-upload-1.0.5 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-1.0.4 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-1.0.3 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-1.0.2 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-1.0.1 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-1.0.0 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.8.3 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.8.2 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.8.1 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.8.0 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.7.3 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.7.2 app/views/components/lolita/configuration/tab/files/_cells.html.erb
lolita-file-upload-0.7.1 app/views/components/lolita/configuration/tab/files/_cells.html.erb