Sha256: 3fefb5f976ae4d16a9362a730b74ec901abb5c941a3a05b3cbac4c835eb46a3c

Contents?: true

Size: 838 Bytes

Versions: 2

Compression:

Stored size: 838 Bytes

Contents

- add_reader_css '/stylesheets/forum.css'
- add_reader_js '/javascripts/forum.js'

- reader ||= @reader
- posts ||= reader.posts.paginate(pagination_parameters)

.forum
  %h3
    =t('forum_extension.forum_messages', :name => reader.name)

  - if posts.empty?
    %p 
      = t('forum_extension.no_posts')
  - else
    = pagination_and_summary_for(posts, t('forum_extension.post')) if posts.previous_page
    - posts.each do |post|
      - if post.comment?
        = render :partial => 'posts/post', :object => post, :locals => {:with_context => true}
      - elsif post.first?
        = render :partial => 'topics/topic', :object => post.topic
      - else
        = render :partial => 'posts/post', :object => post, :locals => {:with_context => true}
    = pagination_and_summary_for(posts, t('forum_extension.post')) if posts.next_page

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.0.rc4 app/views/readers/_forum_messages.html.haml
radiant-forum-extension-3.0.0.rc3 app/views/readers/_forum_messages.html.haml