Sha256: da8d70d6f7e89a8d19276d1a42b495d9a3f3a87bd9e73cf9cb9fcc8a4942a6c0

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

- post ||= @post

.upload_stack
  %ul.attachments
    = hidden_field_tag "post[attachment_ids][]", ""
    - post.attachments.each do |attachment|
      %li.attachment
        = check_box_tag "post[attachment_ids][]", attachment.id, true, {:id => "post_attachment_#{attachment.id}", :class => 'choose_attachment'}
        = link_to attachment.filename, attachment.file.url, :class => "attachment #{attachment.extension}"
  %ul.uploads
  .selector
    = file_field_tag "files[]", :class => "filefield"
    .addfile
      = link_to "attach a file", '#'
      

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.2 app/views/posts/_uploader.html.haml
radiant-forum-extension-1.1.1 app/views/posts/_uploader.html.haml
radiant-forum-extension-1.1.0 app/views/posts/_uploader.html.haml