Sha256: 354787b88cc242f0cdbcf27c91907b20109549849a4fed54c7542066cf10ee86
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
:css #fixed-gallery { position: fixed; top: 0px; left: 0px; border-bottom: 4px solid #CCC; background-color: white; z-index: 200001; width: 100%; display: block; border-bottom: 4px solid #CCC; -moz-box-shadow: #666 2px 2px 15px; -webkit-box-shadow: #666 2px 2px 15px; box-shadow: #666 2px 2px 15px; display:none; overflow: auto; } #fixed-gallery button{ position: fixed; right: 35px; z-index: 200001; } %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) %button{:onclick=>"$('#fixed-gallery').hide();"}Aizvērt
Version data entries
11 entries across 11 versions & 1 rubygems