Feature #11530 » 0001-Support-hooks-in-mailer.patch
| app/views/mailer/wiki_content_added.html.erb | ||
|---|---|---|
|
<p><%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
|
||
|
:author => h(@wiki_content.author)).html_safe %><br />
|
||
|
<em><%=h @wiki_content.comments %></em></p>
|
||
|
<%= call_hook(:view_mailer_wiki_content_added_bottom,
|
||
|
:wiki_content => @wiki_content) %>
|
||
| app/views/mailer/wiki_content_added.text.erb | ||
|---|---|---|
|
<%= @wiki_content.comments %>
|
||
|
<%= @wiki_content_url %>
|
||
|
<%= call_hook(:view_mailer_wiki_content_added_bottom,
|
||
|
:wiki_content => @wiki_content) %>
|
||
| app/views/mailer/wiki_content_updated.html.erb | ||
|---|---|---|
|
<p><%= l(:label_view_diff) %>:<br />
|
||
|
<%= link_to h(@wiki_diff_url), @wiki_diff_url %></p>
|
||
|
<%= call_hook(:view_mailer_wiki_content_updated_bottom,
|
||
|
:wiki_content => @wiki_content) %>
|
||
| app/views/mailer/wiki_content_updated.text.erb | ||
|---|---|---|
|
<%= @wiki_content_url %>
|
||
|
<%= l(:label_view_diff) %>:
|
||
|
<%= @wiki_diff_url %>
|
||
|
<%= call_hook(:view_mailer_wiki_content_updated_bottom,
|
||
|
:wiki_content => @wiki_content) %>
|
||
| lib/redmine/plugin.rb | ||
|---|---|---|
|
view_path = File.join(p.directory, 'app', 'views')
|
||
|
if File.directory?(view_path)
|
||
|
ActionController::Base.prepend_view_path(view_path)
|
||
|
ActionMailer::Base.prepend_view_path(view_path)
|
||
|
end
|
||
|
# Adds the app/{controllers,helpers,models} directories of the plugin to the autoload path
|
||