Sha256: 8686dc85610690cc56373c2e50bd985d18b295e54b439c205295565bb983d826

Contents?: true

Size: 700 Bytes

Versions: 13

Compression:

Stored size: 700 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(post_attachment_url(att, :size => :thumbnail)), post_attachment_url(att, :size => display_size), :class => :thumbnail, :rel => post_attachment_url(att, :size => :original)
    - if post.attachments.non_images.any?
      %ul.attachments
        - post.attachments.non_images.each do |att|
          %li
            = link_to att.filename, post_attachment_url(att), :class => "attachment #{att.extension}"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
radiant-forum-extension-2.1.6 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.1.4 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.1.3 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.1.2 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.1.1 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.9 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.8 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.7 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.6 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.5 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.4 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.3 app/views/posts/_attachments.html.haml
radiant-forum-extension-2.0.2 app/views/posts/_attachments.html.haml