Sha256: a9a08ec809a6b5f4ad7d9a1d7da95e139a5db802d6b542799fd46ce4418d4ff8

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

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

- content_for :preamble do
  %p
    = t('topics_introduction')
    = link_to( t('categories'), forums_url) + '.'

- content_for :messages do
  - if @topics.empty?
    %p 
      = t('no_topics')
  - else
    %ul.main
      = render :partial => 'topics/topic', :collection => @topics, :locals => {:with_context => true}

- content_for :sidebar do
  %h2
    = t('forums')
  %ul
    - Forum.all.each do |forum|
      %li
        = link_to forum.name, forum_url(forum)
        %br
        = forum.topics.count
        = t('topics')

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

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

- content_for :breadhead do
  = home_page_link

- content_for :breadcrumbs do
  = t('forum').titlecase

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

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

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

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



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-forum-extension-1.1.2 app/views/topics/index.html.haml