From 55e2126b1eb1eeb3605beedf977bf1655c4ea619 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 24 Nov 2014 23:10:33 +0530 Subject: [PATCH] FEATURE: add topic status namespace in RSS feed --- app/controllers/list_controller.rb | 2 +- app/views/list/list.rss.erb | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 8cb13c9d681..717bd0a8aab 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -134,7 +134,7 @@ class ListController < ApplicationController render 'list', formats: [:rss] end - + def top(options=nil) options ||= {} period = ListController.best_period_for(current_user.try(:previous_visit_at), options[:category]) diff --git a/app/views/list/list.rss.erb b/app/views/list/list.rss.erb index 6589239be3f..afeed83e0ab 100644 --- a/app/views/list/list.rss.erb +++ b/app/views/list/list.rss.erb @@ -1,5 +1,5 @@ - + <% lang = SiteSetting.find_by_name('default_locale').try(:value) %> <% site_email = SiteSetting.find_by_name('contact_email').try(:value) %> @@ -27,6 +27,9 @@ ]]> <%= topic_url %> <%= topic.created_at.rfc2822 %> + <%= topic.pinned_at ? 'Yes' : 'No' %> + <%= topic.closed ? 'Yes' : 'No' %> + <%= topic.archived ? 'Yes' : 'No' %> topic-<%= topic.id %> <%= topic.title %>