diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-09 18:00:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-09 18:00:27 +0000 |
commit | 66ff4cb7de55328ee6d9ea08d26caeb3d0a19d80 (patch) | |
tree | 0be90ee0f69c66e70ca32a6635b782eabd1bca20 /app/models/mailer.rb | |
parent | 5d2899ee1b3e00d0cf43521182b1244dfc3cfe9f (diff) | |
download | redmine-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.rb | 3 |
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}" |