comparison app/models/.svn/text-base/mailer.rb.svn-base @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 40f7cfd4df19
children 0579821a129a
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
176 redmine_headers 'Project' => wiki_content.project.identifier, 176 redmine_headers 'Project' => wiki_content.project.identifier,
177 'Wiki-Page-Id' => wiki_content.page.id 177 'Wiki-Page-Id' => wiki_content.page.id
178 message_id wiki_content 178 message_id wiki_content
179 recipients wiki_content.recipients 179 recipients wiki_content.recipients
180 cc(wiki_content.page.wiki.watcher_recipients - recipients) 180 cc(wiki_content.page.wiki.watcher_recipients - recipients)
181 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_added, :page => wiki_content.page.pretty_title)}" 181 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_added, :id => wiki_content.page.pretty_title)}"
182 body :wiki_content => wiki_content, 182 body :wiki_content => wiki_content,
183 :wiki_content_url => url_for(:controller => 'wiki', :action => 'index', :id => wiki_content.project, :page => wiki_content.page.title) 183 :wiki_content_url => url_for(:controller => 'wiki', :action => 'show', :project_id => wiki_content.project, :id => wiki_content.page.title)
184 render_multipart('wiki_content_added', body) 184 render_multipart('wiki_content_added', body)
185 end 185 end
186 186
187 # Builds a tmail object used to email the recipients of a project of the specified wiki content was updated. 187 # Builds a tmail object used to email the recipients of a project of the specified wiki content was updated.
188 # 188 #
193 redmine_headers 'Project' => wiki_content.project.identifier, 193 redmine_headers 'Project' => wiki_content.project.identifier,
194 'Wiki-Page-Id' => wiki_content.page.id 194 'Wiki-Page-Id' => wiki_content.page.id
195 message_id wiki_content 195 message_id wiki_content
196 recipients wiki_content.recipients 196 recipients wiki_content.recipients
197 cc(wiki_content.page.wiki.watcher_recipients + wiki_content.page.watcher_recipients - recipients) 197 cc(wiki_content.page.wiki.watcher_recipients + wiki_content.page.watcher_recipients - recipients)
198 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_updated, :page => wiki_content.page.pretty_title)}" 198 subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_updated, :id => wiki_content.page.pretty_title)}"
199 body :wiki_content => wiki_content, 199 body :wiki_content => wiki_content,
200 :wiki_content_url => url_for(:controller => 'wiki', :action => 'index', :id => wiki_content.project, :page => wiki_content.page.title), 200 :wiki_content_url => url_for(:controller => 'wiki', :action => 'show', :project_id => wiki_content.project, :id => wiki_content.page.title),
201 :wiki_diff_url => url_for(:controller => 'wiki', :action => 'diff', :id => wiki_content.project, :page => wiki_content.page.title, :version => wiki_content.version) 201 :wiki_diff_url => url_for(:controller => 'wiki', :action => 'diff', :project_id => wiki_content.project, :id => wiki_content.page.title, :version => wiki_content.version)
202 render_multipart('wiki_content_updated', body) 202 render_multipart('wiki_content_updated', body)
203 end 203 end
204 204
205 # Builds a tmail object used to email the specified user their account information. 205 # Builds a tmail object used to email the specified user their account information.
206 # 206 #