Sha256: f54717124d39e323e4f256661be2386266c6208525a107ed42ec94db5be5d90a
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 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('topics_and_posts')] summary << t('matching') + " '#{@term}'" unless @term.blank? summary << t('posted_by') + " #{@reader.name}" if @reader summary << t('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('latest_posts') xml.description t('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
8 entries across 8 versions & 1 rubygems