Sha256: aa81538230ac900ea50cd812dbee7a519b2760da30dfe41ab915baf50e6a456c

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

- content_for :signals do
  = render :partial => 'readers/flasher'

- content_for :title do
  = t('latest_posts')

- content_for :preamble do
  %p
    = t('posts_introduction')
  
- content_for :messages do
  - if @posts.empty?
    %p 
      = t('no_posts')
  - else
    %ul.main
      = render :partial => 'posts/post', :collection => @posts, :locals => {:with_context => true}

- content_for :new_topic do
  .newmessage
    = link_to t('new_topic'), new_topic_url

- content_for :pagination do
  = pagination_and_summary_for(@posts, t('post'))

- content_for :breadcrumbs do
  = link_to 'Forum', topics_url
  \>
  = @title

- content_for :breadhead do
  = link_to "Forum", topics_url, :class => 'breadhead'

- content_for :feed do
  = feed_link(posts_path(:format => :rss))

- content_for :controls do
  = render :partial => 'readers/controls'

- content_for :help do
  = render :partial => 'topics/help'


#forum
  = yield :new_topic
  = yield :preamble
  = yield :pagination if @posts.previous_page
  = yield :messages
  = yield :pagination if @posts.next_page

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.1 app/views/posts/index.html.haml
radiant-forum-extension-1.1.0 app/views/posts/index.html.haml