Sha256: b4e2d0cb52fe6b4a9bb1893ebe92661e7bd6484db6a146f5fd2afa6a096cf968

Contents?: true

Size: 931 Bytes

Versions: 21

Compression:

Stored size: 931 Bytes

Contents

xm.item do
  xm.title post_title(item)
  xm.description html(item, this_blog.show_extended_on_rss ? :all : :body)
  xm.pubDate pub_date(item.published_at)
  xm.guid "urn:uuid:#{item.guid}", "isPermaLink" => "false"
  author = item.user.name rescue item.author
  email = item.user.email rescue nil
  author = "#{email} (#{author})" if this_blog.link_to_author unless email.blank?
  xm.author author
  xm.link item.permalink_url
  for category in item.categories
    xm.category category.name
  end
  for tag in item.tags
    xm.category tag.display_name
  end

  # RSS 2.0 only allows a single enclosure per item, so only include the first one here.
  if not item.resources.empty?
    resource = item.resources.first
    xm.enclosure(
      :url => item.blog.file_url(resource.filename),
      :length => resource.size,
      :type => resource.mime)
  end
  if item.allow_pings?
    xm.trackback :ping, item.trackback_url
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.5 app/views/xml/_rss20_item_article.rss.builder
typo-5.4.4 app/views/xml/_rss20_item_article.rss.builder
typo-5.4.3 app/views/xml/_rss20_item_article.rss.builder
typo-5.4.2 app/views/xml/_rss20_item_article.rss.builder
typo-5.4.1 app/views/xml/_rss20_item_article.rss.builder
typo-5.4 app/views/xml/_rss20_item_article.rss.builder
typo-4.1.1 app/views/xml/_rss20_item_article.rxml
typo-4.1 app/views/xml/_rss20_item_article.rxml
typo-5.0.2 app/views/xml/_rss20_item_article.rss.builder
typo-5.0.1 app/views/xml/_rss20_item_article.rss.builder
typo-5.0.3.98.1 app/views/xml/_rss20_item_article.rss.builder
typo-5.0.3.98 app/views/xml/_rss20_item_article.rss.builder
typo-5.0 app/views/xml/_rss20_item_article.rss.builder
typo-5.1.1 app/views/xml/_rss20_item_article.rss.builder
typo-5.1.2 app/views/xml/_rss20_item_article.rss.builder
typo-5.1.3 app/views/xml/_rss20_item_article.rss.builder
typo-5.1.98 app/views/xml/_rss20_item_article.rss.builder
typo-5.1 app/views/xml/_rss20_item_article.rss.builder
typo-5.2.98 app/views/xml/_rss20_item_article.rss.builder
typo-5.2 app/views/xml/_rss20_item_article.rss.builder