OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4f55a8
)
Better naming of activity feed if only one kind of event is displayed (#1323).
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 6 Jul 2008 13:57:10 +0000
(13:57 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 6 Jul 2008 13:57:10 +0000
(13:57 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1642
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/controllers/projects_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/projects_controller.rb
b/app/controllers/projects_controller.rb
index
87a93c8
..
3af77d1
100644
(file)
--- a/
app/controllers/projects_controller.rb
+++ b/
app/controllers/projects_controller.rb
@@
-311,7
+311,10
@@
class ProjectsController < ApplicationController
respond_to do |format|
format.html { render :layout => false if request.xhr? }
- format.atom { render_feed(@events, :title => "#{@project || Setting.app_title}: #{l(:label_activity)}") }
+ format.atom {
+ title = (@scope.size == 1) ? l("label_#{@scope.first.singularize}_plural") : l(:label_activity)
+ render_feed(@events, :title => "#{@project || Setting.app_title}: #{title}")
+ }
end
end