Sha256: f41d2f648cc9b6255d9a9cdae894309a3e634c9c393eded66a838d2fc3eb58bd

Contents?: true

Size: 606 Bytes

Versions: 11

Compression:

Stored size: 606 Bytes

Contents

- if Radiant::Config['forum.allow_attachments?'] && f
  - post ||= f.object
  
  .upload_stack
    %ul.attachments
      - post.attachments.each do |att|
        - f.fields_for :attachments, att do |af|
          = render :partial => 'posts/attachment', :object => att, :locals => {:af => af}
    %ul.uploads
    .selector
      - new_attachment = post.attachments.build
      - f.fields_for :attachments, new_attachment do |naf|
        = render :partial => 'posts/new_attachment', :object => new_attachment, :locals => {:naf => naf}
      .addfile
        = link_to t('forum_extension.attach_file'), "#"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.7 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.6 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.5 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.4 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.3 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.2 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.1 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.0 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.0.rc6 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.0.rc4 app/views/posts/_uploader.html.haml
radiant-forum-extension-3.0.0.rc3 app/views/posts/_uploader.html.haml