Sha256: 258c38e1ab8972789f36d45c96275f791093918b3da63483703817969c8c7519

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

- cssclasses = ["dl"]
- cssclasses << document.file_extension
- cssclasses << 'changed' if document.changed_since_creation?

%div.document.holder
  %h2.name<
    = link_to truncate(document.name, :length => 33), droom.folder_document_url(document.folder, document), :class => cssclasses, :title => t(:click_to_download, :name => document.file_file_name)
    - if admin?
      = link_to t(:edit_document), edit_document_url(document), :class => 'admin edit minimal', :remote => true, :data => {:action => "overlay", :type => "html"}

  - if document.description
    - cssclasses = document.changed_since_creation? ? "description changed" : "description"
    %p{:class => cssclasses}
      = document.description

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/documents/_document.html.haml
droom-0.4.2 app/views/droom/documents/_document.html.haml
droom-0.4.1 app/views/droom/documents/_document.html.haml