Sha256: f9df519dde9732f3cb42e2b241602a989767d53058e91d2ff86d8090c474bb51

Contents?: true

Size: 967 Bytes

Versions: 3

Compression:

Stored size: 967 Bytes

Contents

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

- cssclasses = []
- cssclasses << 'first' if post.first?
- cssclasses << 'reply' unless post.first?
- cssclasses << 'deleted' if post.frozen?
  
.post{:id => post.dom_id, :class => cssclasses.join(' ')}
  .post_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

      = render :partial => 'posts/edit_links', :locals => {:post => post}

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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