Sha256: dcaa90a2a1707ead865ccdd03eff5d8db37c2f560747d6f224dc768e112d4371

Contents?: true

Size: 988 Bytes

Versions: 5

Compression:

Stored size: 988 Bytes

Contents

- post ||= @post
- first ||= post.first?
- with_context ||= false
- headless ||= first unless defined? headless

- cssclasses = []
- cssclasses << 'first' if post.first?
- cssclasses << 'reply' unless post.first?
- cssclasses << 'deleted' if post.frozen?
  
.post{:id => post.dom_id, :class => cssclasses.join(' ')}
  .wrapper
    - unless headless
      .speaker
        = standard_gravatar_for(post.reader)
    .post_header
      - unless headless
        - if with_context
          %h2.reply
            = link_to post.topic.name, paginated_post_url(post)
        - else
          %h2
            = post.reader.name

      %p.context
        - if with_context
          = render :partial => 'posts/context', :locals => {:post => post}
        = friendly_date(post.created_at) + '.'
        = render :partial => 'posts/edit_links', :locals => {:post => post}

    .post_body
      = clean_textilize(post.body)
      = render :partial => 'posts/attachments', :locals => {:post => post}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-forum-extension-2.1.6 app/views/posts/_post.html.haml
radiant-forum-extension-2.1.4 app/views/posts/_post.html.haml
radiant-forum-extension-2.1.3 app/views/posts/_post.html.haml
radiant-forum-extension-2.1.2 app/views/posts/_post.html.haml
radiant-forum-extension-2.1.1 app/views/posts/_post.html.haml