Sha256: 9fd37c50013406e40168cc395407aa7b4b9bbbf2d2345aa8eb5bfed327119b80
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
- if !@term.blank? || @reader || @forum || @topic - @searching = true - summary = [t('showing_posts')] - summary << t('in') + ' ' + link_to(@forum.name, forum_url(@forum)) if @forum - summary << t('containing') + " <strong>#{@term}</strong>" unless @term.blank? - summary << t('posted_by') + ' ' + link_to(@reader.name, reader_url(@reader)) if @reader - summary << t('in_topic') + ' ' + link_to(@topic.name, forum_topic_url(@topic.forum, @topic)) if @topic = render :partial => 'forums/standard_parts' - content_for :title do = t('posts_heading') - content_for :introduction do - if @searching = summary.join(' ') + ":" - else = t('posts_introduction') - content_for :sidebar do - unless @searching && @posts.empty? = render :partial => 'posts/search_form' = render :partial => "topics/latest" - content_for :pagination do = pagination_and_summary_for(@posts, t('post')) - content_for :breadcrumbs do = link_to t('forum').titlecase, topics_url = t('separator') = yield :title - content_for :feedlink do = feed_link(posts_path(:format => :rss)) - content_for :messages do - if @posts.empty? - if @searching %p.has_error = t('no_search_results') = render :partial => 'posts/search_form' - else %p = t('no_posts') - else = yield :pagination if @posts.previous_page = render :partial => 'posts/post', :collection => @posts, :locals => {:with_context => true, :headless => false} = yield :pagination if @posts.next_page #forum = yield :messages
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-2.0.5 | app/views/posts/index.html.haml |