summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-09 18:00:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-09 18:00:27 +0000
commit66ff4cb7de55328ee6d9ea08d26caeb3d0a19d80 (patch)
tree0be90ee0f69c66e70ca32a6635b782eabd1bca20 /app/models/mailer.rb
parent5d2899ee1b3e00d0cf43521182b1244dfc3cfe9f (diff)
downloadredmine-66ff4cb7de55328ee6d9ea08d26caeb3d0a19d80.tar.gz
redmine-66ff4cb7de55328ee6d9ea08d26caeb3d0a19d80.zip
Files module: makes version field non required (#1053).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2117 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r--app/models/mailer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index f17ebbdbb..969fcd9ac 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -73,6 +73,9 @@ class Mailer < ActionMailer::Base
added_to = ''
added_to_url = ''
case container.class.name
+ when 'Project'
+ added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
+ added_to = "#{l(:label_project)}: #{container}"
when 'Version'
added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container.project_id)
added_to = "#{l(:label_version)}: #{container.name}"