Sha256: 0531bda11fde4e0cb11ec99b968caa19c10456eb899f5979dc7426121770f9e2

Contents?: true

Size: 1.02 KB

Versions: 1

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.url.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

1 entries across 1 versions & 1 rubygems

Version Path
lolita-file-upload-0.2.5 app/views/components/lolita/configuration/tab/files/_fixed_gallery.html.haml