app/views/components/lolita/configuration/tab/files/_fixed_gallery.html.haml in lolita-file-upload-0.4.7 vs app/views/components/lolita/configuration/tab/files/_fixed_gallery.html.haml in lolita-file-upload-0.4.8

- old
+ new

@@ -22,11 +22,11 @@ } %div{:id=>"fixed-gallery"} - resource_class.lolita.tabs.select{|tab| tab.type == :files}.each do |tab| %h1= tab.title - - files = tab.association_type == :one ? [resource.send(tab.association.name)].compact : resource.send(tab.association.name) - - files.each do |file| - - 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 - = image_tag(url) + / - files = tab.association_type == :one ? [resource.send(tab.association.name)].compact : resource.send(tab.association.name) + / - files.each do |file| + / - 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 + / = #image_tag(url) %button{:onclick=>"$('#fixed-gallery').hide();"}Aizvērt \ No newline at end of file