@@ -0,0 +1,25 | |||||
|
1 | # redMine - project management software | |||
|
2 | # Copyright (C) 2006 Jean-Philippe Lang | |||
|
3 | # | |||
|
4 | # This program is free software; you can redistribute it and/or | |||
|
5 | # modify it under the terms of the GNU General Public License | |||
|
6 | # as published by the Free Software Foundation; either version 2 | |||
|
7 | # of the License, or (at your option) any later version. | |||
|
8 | # | |||
|
9 | # This program is distributed in the hope that it will be useful, | |||
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
12 | # GNU General Public License for more details. | |||
|
13 | # | |||
|
14 | # You should have received a copy of the GNU General Public License | |||
|
15 | # along with this program; if not, write to the Free Software | |||
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
|
17 | ||||
|
18 | class FeedsController < ApplicationController | |||
|
19 | session :off | |||
|
20 | ||||
|
21 | def news | |||
|
22 | @news = News.find :all, :order => 'news.created_on DESC', :limit => 10, :include => [ :author, :project ] | |||
|
23 | @headers["Content-Type"] = "application/rss+xml" | |||
|
24 | end | |||
|
25 | end |
@@ -0,0 +1,19 | |||||
|
1 | # redMine - project management software | |||
|
2 | # Copyright (C) 2006 Jean-Philippe Lang | |||
|
3 | # | |||
|
4 | # This program is free software; you can redistribute it and/or | |||
|
5 | # modify it under the terms of the GNU General Public License | |||
|
6 | # as published by the Free Software Foundation; either version 2 | |||
|
7 | # of the License, or (at your option) any later version. | |||
|
8 | # | |||
|
9 | # This program is distributed in the hope that it will be useful, | |||
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
12 | # GNU General Public License for more details. | |||
|
13 | # | |||
|
14 | # You should have received a copy of the GNU General Public License | |||
|
15 | # along with this program; if not, write to the Free Software | |||
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
|
17 | ||||
|
18 | module FeedsHelper | |||
|
19 | end |
@@ -0,0 +1,20 | |||||
|
1 | xml.instruct! | |||
|
2 | xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do | |||
|
3 | xml.channel do | |||
|
4 | xml.title "#{$RDM_HEADER_TITLE}: #{l(:label_news_latest)}" | |||
|
5 | xml.link url_for(:controller => '', :only_path => false) | |||
|
6 | xml.pubDate CGI.rfc1123_date(@news.first.created_on) | |||
|
7 | xml.description "#{$RDM_HEADER_TITLE}: #{l(:label_news_latest)}" | |||
|
8 | @news.each do |news| | |||
|
9 | xml.item do | |||
|
10 | xml.title "#{news.project.name}: #{news.title}" | |||
|
11 | news_url = url_for(:controller => 'news' , :action => 'show', :id => news, :only_path => false) | |||
|
12 | xml.link news_url | |||
|
13 | xml.description h(news.summary) | |||
|
14 | xml.pubDate CGI.rfc1123_date(news.created_on) | |||
|
15 | xml.guid news_url | |||
|
16 | xml.author h(news.author.name) | |||
|
17 | end | |||
|
18 | end | |||
|
19 | end | |||
|
20 | end No newline at end of file |
@@ -14,6 +14,8 | |||||
14 | <%= javascript_include_tag 'calendar/calendar-setup' %> |
|
14 | <%= javascript_include_tag 'calendar/calendar-setup' %> | |
15 | <%= stylesheet_link_tag 'calendar' %> |
|
15 | <%= stylesheet_link_tag 'calendar' %> | |
16 | <%= stylesheet_link_tag 'jstoolbar' %> |
|
16 | <%= stylesheet_link_tag 'jstoolbar' %> | |
|
17 | <!-- page specific tags --> | |||
|
18 | <%= yield :header_tags %> | |||
17 | </head> |
|
19 | </head> | |
18 |
|
20 | |||
19 | <body> |
|
21 | <body> |
@@ -21,3 +21,7 | |||||
21 | </ul> |
|
21 | </ul> | |
22 | </div> |
|
22 | </div> | |
23 | </div> |
|
23 | </div> | |
|
24 | ||||
|
25 | <% content_for :header_tags do %> | |||
|
26 | <%= auto_discovery_link_tag(:rss, {:controller => 'feeds' , :action => 'news' }) %> | |||
|
27 | <% end %> No newline at end of file |
@@ -26,6 +26,7 http://redmine.org/ | |||||
26 | * calendar date picker for date fields (LGPL DHTML Calendar http://sourceforge.net/projects/jscalendar) |
|
26 | * calendar date picker for date fields (LGPL DHTML Calendar http://sourceforge.net/projects/jscalendar) | |
27 | * new filter in issues list: Author |
|
27 | * new filter in issues list: Author | |
28 | * ajaxified paginators |
|
28 | * ajaxified paginators | |
|
29 | * news rss feed added | |||
29 | * option to set number of results per page on issues list |
|
30 | * option to set number of results per page on issues list | |
30 | * localized csv separator (comma/semicolon) |
|
31 | * localized csv separator (comma/semicolon) | |
31 | * csv output encoded to ISO-8859-1 |
|
32 | * csv output encoded to ISO-8859-1 |
General Comments 0
You need to be logged in to leave comments.
Login now