summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 13:13:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 13:13:04 +0000
commit50096526bcb0e7a91562ae15d3d97c6cab241439 (patch)
tree421b5e185b43eb86a503ef4e9ff06c3d6bffe9c7 /app
parentc6e8cf5c21dd1f1e18373c948c2e16f20b2eb5f3 (diff)
downloadredmine-50096526bcb0e7a91562ae15d3d97c6cab241439.tar.gz
redmine-50096526bcb0e7a91562ae15d3d97c6cab241439.zip
Removed ProjectsController#feeds. This view was incomplete and inconsistent with permissions.
Feeds can still be accessed from the corresponding screens (eg. news feed is accessible from the news view). git-svn-id: http://redmine.rubyforge.org/svn/trunk@787 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb5
-rw-r--r--app/views/projects/feeds.rhtml33
-rw-r--r--app/views/projects/show.rhtml12
3 files changed, 1 insertions, 49 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 3053bea7c..5172f93b1 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -580,11 +580,6 @@ class ProjectsController < ApplicationController
render :template => "projects/gantt.rhtml"
end
end
-
- def feeds
- @queries = @project.queries.find :all, :conditions => ["is_public=? or user_id=?", true, (logged_in_user ? logged_in_user.id : 0)]
- @key = User.current.rss_key
- end
private
# Find project of id params[:id]
diff --git a/app/views/projects/feeds.rhtml b/app/views/projects/feeds.rhtml
deleted file mode 100644
index 037469a8a..000000000
--- a/app/views/projects/feeds.rhtml
+++ /dev/null
@@ -1,33 +0,0 @@
-<h2><%= l(:label_feed_plural) %> (<%=h @project.name %>)</h2>
-
-<table>
-
-<tr><td colspan="3"><h3><%= l(:label_issue_plural) %></h3></td></tr>
-<tr><td><%= l(:label_reported_issues) %></td>
-<td><%= link_to 'RSS', {:controller => 'feeds', :action => 'issues', :project_id => @project, :key => @key}, :class => 'icon icon-feed' %></td>
-<td><%= link_to 'Atom', {:controller => 'feeds', :action => 'issues', :project_id => @project, :key => @key, :format => 'atom'}, :class => 'icon icon-feed' %></td>
-</tr>
-<tr><td><%= l(:label_changes_details) %></td>
-<td><%= link_to 'RSS', {:controller => 'feeds', :action => 'history', :project_id => @project, :key => @key}, :class => 'icon icon-feed' %></td>
-<td><%= link_to 'Atom', {:controller => 'feeds', :action => 'history', :project_id => @project, :key => @key, :format => 'atom'}, :class => 'icon icon-feed' %></td>
-</tr>
-
-<% @queries.each do |query| %>
-<tr><td colspan="3"><h4><%=h query.name %></h4></td></tr>
-<tr><td><%= l(:label_reported_issues) %></td>
-<td><%= link_to 'RSS', {:controller => 'feeds', :action => 'issues', :project_id => @project, :query_id => query, :key => @key}, :class => 'icon icon-feed' %></td>
-<td><%= link_to 'Atom', {:controller => 'feeds', :action => 'issues', :project_id => @project, :query_id => query, :key => @key, :format => 'atom'}, :class => 'icon icon-feed' %></td>
-</tr>
-<tr><td><%= l(:label_changes_details) %></td>
-<td><%= link_to 'RSS', {:controller => 'feeds', :action => 'history', :project_id => @project, :query_id => query, :key => @key}, :class => 'icon icon-feed' %></td>
-<td><%= link_to 'Atom', {:controller => 'feeds', :action => 'history', :project_id => @project, :query_id => query, :key => @key, :format => 'atom'}, :class => 'icon icon-feed' %></td>
-</tr>
-<% end %>
-
-<tr><td colspan="3">&nbsp;<h3><%= l(:label_news_plural) %></h3></td></tr>
-<tr><td><%= l(:label_news_latest) %></td>
-<td><%= link_to 'RSS', {:controller => 'feeds', :action => 'news', :project_id => @project, :key => @key}, :class => 'icon icon-feed' %></td>
-<td><%= link_to 'Atom', {:controller => 'feeds', :action => 'news', :project_id => @project, :key => @key, :format => 'atom'}, :class => 'icon icon-feed' %></td>
-</tr>
-
-</table> \ No newline at end of file
diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml
index 6671af1ca..25fbe3c68 100644
--- a/app/views/projects/show.rhtml
+++ b/app/views/projects/show.rhtml
@@ -76,18 +76,8 @@
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |
<%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
<% end %>
-
- <hr />
- <p><%= link_to l(:label_feed_plural), {:action => 'feeds', :id => @project}, :class => 'icon icon-feed' %></p>
<% end %>
<% 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)}) %>
+<%= auto_discovery_link_tag(:atom, {:action => 'activity', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
<% end %>