Project

General

Profile

Feature #11530 » support-hooks-in-mailer-for-r18899-3.patch

Kouhei Sutou, 2019-11-05 11:26

View differences:

app/views/mailer/account_activated.html.erb (working copy)
<p><%= l(:notice_account_activated) %></p>
<p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
<%= call_hook(:view_mailer_account_activated_bottom) %>
app/views/mailer/account_activated.text.erb (working copy)
<%= l(:notice_account_activated) %>
<%= l(:label_login) %>: <%= @login_url %>
<%= call_hook(:view_mailer_account_activated_bottom) %>
app/views/mailer/account_activation_request.html.erb (working copy)
<p><%= l(:mail_body_account_activation_request, h(@new_user.login)) %></p>
<p><%= link_to @url, @url %></p>
<%= call_hook(:view_mailer_account_activation_request_bottom,
:user => @user) %>
app/views/mailer/account_activation_request.text.erb (working copy)
<%= l(:mail_body_account_activation_request, @new_user.login) %>
<%= @url %>
<%= call_hook(:view_mailer_account_activation_request_bottom,
:user => @user) %>
app/views/mailer/account_information.html.erb (working copy)
<% end %>
<p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
<%= call_hook(:view_mailer_account_information_bottom,
:user => @user) %>
app/views/mailer/account_information.text.erb (working copy)
<% if @password %>* <%= l(:field_password) %>: <%= @password %><% end %>
<% end %>
<%= l(:label_login) %>: <%= @login_url %>
<%= call_hook(:view_mailer_account_information_bottom,
:user => @user) %>
app/views/mailer/attachments_added.html.erb (working copy)
<ul><% @attachments.each do |attachment | %>
<li><%= attachment.filename %></li>
<% end %></ul>
<%= call_hook(:view_mailer_attachments_added_bottom,
:attachments => @attachments) %>
app/views/mailer/attachments_added.text.erb (working copy)
- <%= attachment.filename %><% end %>
<%= @added_to_url %>
<%= call_hook(:view_mailer_attachments_added_bottom,
:attachments => @attachments) %>
app/views/mailer/document_added.html.erb (working copy)
<%= link_to(@document.title, @document_url) %> (<%= @document.category.name %>)<br />
<br />
<%= textilizable(@document, :description, :only_path => false) %>
<%= call_hook(:view_mailer_document_added_bottom,
:document => @document) %>
app/views/mailer/document_added.text.erb (working copy)
<%= @document_url %>
<%= @document.description %>
<%= call_hook(:view_mailer_document_added_bottom,
:document => @document) %>
app/views/mailer/issue_add.html.erb (working copy)
<%= l(:text_issue_added, :id => link_to("##{@issue.id}", @issue_url), :author => h(@issue.author)).html_safe %>
<hr />
<%= render :partial => 'issue', :formats => [:html], :locals => { :issue => @issue, :user => @user, :issue_url => @issue_url } %>
<%= call_hook(:view_mailer_issue_add_bottom,
:issue => @issue,
:users => @users,
:issue_url => @issue_url) %>
app/views/mailer/issue_add.text.erb (working copy)
----------------------------------------
<%= render :partial => 'issue', :formats => [:text], :locals => { :issue => @issue, :user => @user, :issue_url => @issue_url } %>
<%= call_hook(:view_mailer_issue_add_bottom,
:issue => @issue,
:users => @users,
:issue_url => @issue_url) %>
app/views/mailer/issue_edit.html.erb (working copy)
<% end %>
</ul>
<%= call_hook(:view_mailer_issue_edit_after_details,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) %>
<%= textilizable(@journal, :notes, :only_path => false) %>
<%= call_hook(:view_mailer_issue_edit_after_notes,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) %>
<hr />
<%= render :partial => 'issue', :formats => [:html], :locals => { :issue => @issue, :user => @user, :issue_url => @issue_url } %>
<%= call_hook(:view_mailer_issue_edit_bottom,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) %>
app/views/mailer/issue_edit.text.erb (working copy)
<% details_to_strings(@journal_details, true).each do |string| -%>
<%= string %>
<% end -%>
<%= call_hook(:view_mailer_issue_edit_after_details,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) -%>
<% if @journal.notes? -%>
<%= @journal.notes %>
<% end -%>
<%= call_hook(:view_mailer_issue_edit_after_notes,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) -%>
----------------------------------------
<%= render :partial => 'issue', :formats => [:text], :locals => { :issue => @issue, :user => @user, :issue_url => @issue_url } %>
<%= call_hook(:view_mailer_issue_edit_bottom,
:issue => @issue,
:journal => @journal,
:journal_details => @journal_details,
:users => @users,
:issue_url => @issue_url) -%>
app/views/mailer/lost_password.html.erb (working copy)
<p><%= l(:mail_body_lost_password_validity) %></p>
<p><%= l(:field_login) %>: <b><%= @token.user.login %></b></p>
<%= call_hook(:view_mailer_lost_password_bottom) %>
app/views/mailer/lost_password.text.erb (working copy)
<%= l(:mail_body_lost_password_validity) %>
<%= l(:field_login) %>: <%= @token.user.login %>
<%= call_hook(:view_mailer_lost_password_bottom) %>
app/views/mailer/message_posted.html.erb (working copy)
<em><%= @message.author %></em>
<%= textilizable(@message, :content, :only_path => false) %>
<%= call_hook(:view_mailer_message_posted_bottom,
:message => @message) %>
app/views/mailer/message_posted.text.erb (working copy)
<%= @message.author %>
<%= @message.content %>
<%= call_hook(:view_mailer_message_posted_bottom,
:message => @message) %>
app/views/mailer/news_added.html.erb (working copy)
<em><%= @news.author.name %></em>
<%= textilizable(@news, :description, :only_path => false) %>
<%= call_hook(:view_mailer_news_added_bottom,
:news => @news) %>
app/views/mailer/news_added.text.erb (working copy)
<%= @news.author.name %>
<%= @news.description %>
<%= call_hook(:view_mailer_news_added_bottom,
:news => @news) %>
app/views/mailer/news_comment_added.html.erb (working copy)
<p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
<%= textilizable @comment, :comments, :only_path => false %>
<%= call_hook(:view_mailer_news_comment_added_bottom,
:news => @news,
:comment => @comment) %>
app/views/mailer/news_comment_added.text.erb (working copy)
<%= l(:text_user_wrote, :value => @comment.author) %>
<%= @comment.comments %>
<%= call_hook(:view_mailer_news_comment_added_bottom,
:news => @news,
:comment => @comment) %>
app/views/mailer/register.html.erb (working copy)
<p><%= l(:mail_body_register) %><br />
<%= link_to @url, @url %></p>
<%= call_hook(:view_mailer_register_bottom) %>
app/views/mailer/register.text.erb (working copy)
<%= l(:mail_body_register) %>
<%= @url %>
<%= call_hook(:view_mailer_register_bottom) %>
app/views/mailer/reminder.html.erb (working copy)
</ul>
<p><%= link_to l(:label_issue_view_all), @issues_url %> (<%= l(:label_x_open_issues_abbr, :count => @open_issues_count) %>)</p>
<%= call_hook(:view_mailer_reminder_bottom,
:issues => @issues,
:days => @days) %>
app/views/mailer/reminder.text.erb (working copy)
<%= l(:label_issue_view_all)%> (<%= l(:label_x_open_issues_abbr, :count => @open_issues_count) %>)
<%= @issues_url %>
<%= call_hook(:view_mailer_reminder_bottom,
:issues => @issues,
:days => @days) %>
app/views/mailer/security_notification.html.erb (working copy)
<p><%= l(:field_user) %>: <strong><%= @sender.login %></strong><br/>
<%= l(:field_remote_ip) %>: <strong><%= @remote_ip %></strong><br/>
<%= l(:label_date) %>: <strong><%= format_time Time.now, true %></strong></p>
<%= call_hook(:view_mailer_security_notification_bottom) %>
app/views/mailer/security_notification.text.erb (working copy)
<%= l(:field_user) %>: <%= @sender.login %>
<%= l(:field_remote_ip) %>: <%= @remote_ip %>
<%= l(:label_date) %>: <%= format_time Time.now, true %>
<%= call_hook(:view_mailer_security_notification_bottom) %>
app/views/mailer/settings_updated.html.erb (working copy)
<%= l(:field_remote_ip) %>: <strong><%= @remote_ip %></strong><br/>
<%= l(:label_date) %>: <strong><%= format_time Time.now, true %></strong></p>
<%= call_hook(:view_mailer_settings_updated_bottom,
:changes => @changes) %>
app/views/mailer/settings_updated.text.erb (working copy)
<%= l(:field_remote_ip) %>: <%= @remote_ip %>
<%= l(:label_date) %>: <%= format_time Time.now, true %>
<%= call_hook(:view_mailer_settings_updated_bottom,
:changes => @changes) %>
app/views/mailer/test_email.html.erb (working copy)
<p>This is a test email sent by Redmine.<br />
Redmine URL: <%= link_to @url, @url %></p>
<%= call_hook(:view_mailer_test_email_bottom) %>
app/views/mailer/test_email.text.erb (working copy)
This is a test email sent by Redmine.
Redmine URL: <%= @url %>
<%= call_hook(:view_mailer_test_email_bottom) %>
app/views/mailer/wiki_content_added.html.erb (working copy)
<p><%= l(:mail_body_wiki_content_added, :id => link_to(@wiki_content.page.pretty_title, @wiki_content_url),
:author => h(@wiki_content.author)).html_safe %><br />
<em><%= @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 (working copy)
<%= @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 (working copy)
<p><%= l(:label_view_diff) %>:<br />
<%= link_to @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 (working copy)
<%= @wiki_content_url %>
<%= l(:label_view_diff) %>:
<%= @wiki_diff_url %>
<%= call_hook(:view_mailer_wiki_content_updated_bottom,
:wiki_content => @wiki_content) %>
(7-7/8)