Sha256: c03558cb3a1fc983ba8b4bed28a7f6d35ef7802ab1f7e9eb79297c30e884b77a

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

- if Radiant::Config['forum.allow_attachments?'] && !post.frozen? && post.attachments.any?
  .post_attachments
    %h4 
      = t('attached') + ':'
    - post.attachments.images.each do |att|
      - display_size = Radiant::Config['forum.image_zoom_size'] || :original
      = link_to image_tag(att.thumbnail), att.file.url(display_size), :class => :thumbnail
    - if post.attachments.non_images.any?
      %ul.attachments
        - post.attachments.non_images.each do |att|
          %li
            = link_to att.filename, att.file.url, :class => "attachment #{att.extension}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.1 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.0 app/views/posts/_attachments.html.haml