Sha256: f85e6847b45761635174fd49a9fb0461d45c73d0255ab74dbf11a540f4c666e8
Contents?: true
Size: 1.12 KB
Versions: 11
Compression:
Stored size: 1.12 KB
Contents
@searching = !@term.blank? || @reader || @forum || @topic xml.channel do xml.atom :link, nil, { :href => formatted_posts_url(:rss), :rel => 'self', :type => 'application/rss+xml' } if @searching summary = [t('forum_extension.topics_and_posts')] summary << t('forum_extension.matching') + " '#{@term}'" unless @term.blank? summary << t('forum_extension.posted_by') + " #{@reader.name}" if @reader summary << t('forum_extension.in_forum') + " #{@forum.name}" if @forum xml.title Radiant::Config['site.name'] + ': ' + summary.join(' ') xml.description summary.join(' ') else xml.title Radiant::Config['site.name'] + ': ' + t('forum_extension.latest_posts') xml.description t('forum_extension.latest_posts_description') end url_parts = {} url_parts[:q] = @term unless @term.blank? url_parts[:reader_id] = @reader.id if @reader url_parts[:forum_id] = @forum.id if @forum url_parts[:reader_id] = @topic.id if @topic xml.link posts_url(url_parts) xml.language I18n.locale.to_s xml.ttl "60" render :partial => "posts/post", :collection => @posts, :locals => {:xm => xml} end
Version data entries
11 entries across 11 versions & 1 rubygems