Sha256: cc3e311bf4a2b637bc99a0fda4020dcfde2b61c943883cbdb4c689bcce3bff14
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 Bytes
Contents
- folder ||= @folder - standalone ||= false - title ||= folder.name || folder.slug - open ||= false - if @folder - open = true if folder == @folder || folder.ancestor_of?(@folder) - defer_contents ||= !open - cssclass = "folder" - cssclass << " open" if open - cssclass << " root" if folder.loose? - cssclass << " empty" unless folder.populated? - cssclass << " standalone" if standalone %li{:class => cssclass, :id => "folder_#{folder.id}", :data => {:refreshable => true, :url => droom.folder_path(folder, :js)} }< = link_to shorten(title, 48), droom.folder_url(folder), :class => "folder", :data => {:remote => true, :action => 'replace', :affected => "#folder_#{folder.id}"} = action_menulink(folder) = dropbox_link(folder) - unless defer_contents = render :partial => "droom/folders/contents", :locals => {:folder => folder} = action_menu(folder)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
droom-0.4.3 | app/views/droom/folders/_folder.html.haml |
droom-0.4.2 | app/views/droom/folders/_folder.html.haml |
droom-0.4.1 | app/views/droom/folders/_folder.html.haml |