Sha256: a05df5c99b6d69486451395621c68a257dbbed8de08a4929414fafe661a395b3
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
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 = image_tag(file.send(tab.uploader).url) - else = link_to file.send(tab.uploader).url, file.send(tab.uploader).url %button{:onclick=>"$('#fixed-gallery').hide();"}Aizvērt
Version data entries
2 entries across 2 versions & 1 rubygems