summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-16 11:01:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-16 11:01:00 +0000
commit1f991c6a792a76de50d6b373510544e6469751b3 (patch)
tree66ecca85311bffff7e00724ac0e996795438f60c /app/views
parent2f0edb0b61aa6f52d9bf1cb9b16e8561d132e46a (diff)
downloadredmine-1f991c6a792a76de50d6b373510544e6469751b3.tar.gz
redmine-1f991c6a792a76de50d6b373510544e6469751b3.zip
Added feeds auto discovery links on projects/show (patch by Nicolas Chuche).
Also fixed 'issue changes details' feed title. git-svn-id: http://redmine.rubyforge.org/svn/trunk@647 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/feeds/history.rxml2
-rw-r--r--app/views/feeds/issues.rxml2
-rw-r--r--app/views/projects/show.rhtml13
-rw-r--r--app/views/welcome/index.rhtml5
4 files changed, 17 insertions, 5 deletions
diff --git a/app/views/feeds/history.rxml b/app/views/feeds/history.rxml
index b7e5a3509..9894412cc 100644
--- a/app/views/feeds/history.rxml
+++ b/app/views/feeds/history.rxml
@@ -4,7 +4,7 @@ xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
xml.title @title
xml.link url_for(:controller => 'welcome', :only_path => false)
xml.pubDate CGI.rfc1123_date(@journals.first ? @journals.first.created_on : Time.now)
- xml.description l(:label_reported_issues)
+ xml.description l(:label_changes_details)
@journals.each do |journal|
issue = journal.issue
xml.item do
diff --git a/app/views/feeds/issues.rxml b/app/views/feeds/issues.rxml
index fb120b7cb..70398f421 100644
--- a/app/views/feeds/issues.rxml
+++ b/app/views/feeds/issues.rxml
@@ -17,4 +17,4 @@ xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
end
end
end
-end \ No newline at end of file
+end
diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml
index 354568f97..9419fb2a1 100644
--- a/app/views/projects/show.rhtml
+++ b/app/views/projects/show.rhtml
@@ -56,4 +56,15 @@
<p class="textcenter"><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></p>
</div>
<% end %>
-</div> \ No newline at end of file
+</div>
+
+<% content_for :header_tags do %>
+<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'issues', :project_id => @project, :key => @key}, {:title => l(:label_reported_issues)}) %>
+<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'issues', :project_id => @project, :key => @key, :format => 'atom'}, {:title => l(:label_reported_issues)}) %>
+
+<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'history', :project_id => @project, :key => @key }, {:title => l(:label_changes_details)}) %>
+<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'history', :project_id => @project, :key => @key, :format => 'atom'}, {:title => l(:label_changes_details)}) %>
+
+<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'news', :project_id => @project, :key => @key}, {:title => l(:label_news_latest)}) %>
+<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :project_id => @project, :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
+<% end %>
diff --git a/app/views/welcome/index.rhtml b/app/views/welcome/index.rhtml
index 9c73ab863..b91efec28 100644
--- a/app/views/welcome/index.rhtml
+++ b/app/views/welcome/index.rhtml
@@ -23,5 +23,6 @@
</div>
<% content_for :header_tags do %>
-<%= auto_discovery_link_tag(:rss, {:controller => 'feeds' , :action => 'news' }) %>
-<% end %> \ No newline at end of file
+<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
+<%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
+<% end %>