summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-29 15:29:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-29 15:29:57 +0000
commit690a6b79285278e23b3d7f69161581575c7f169f (patch)
treed4e9cd338a02a3eb6c91bcc27671ce6bdaea9dfa
parent83777f727a4291e63962470070b9a1bba9e42f27 (diff)
downloadredmine-690a6b79285278e23b3d7f69161581575c7f169f.tar.gz
redmine-690a6b79285278e23b3d7f69161581575c7f169f.zip
Make the issue id from email notifications linkable to issue page (#23180).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@15587 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/mailer/issue_add.html.erb2
-rw-r--r--app/views/mailer/issue_edit.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/mailer/issue_add.html.erb b/app/views/mailer/issue_add.html.erb
index 99fd08d14..14292be96 100644
--- a/app/views/mailer/issue_add.html.erb
+++ b/app/views/mailer/issue_add.html.erb
@@ -1,3 +1,3 @@
-<%= l(:text_issue_added, :id => "##{@issue.id}", :author => h(@issue.author)) %>
+<%= 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, :users => @users, :issue_url => @issue_url } %>
diff --git a/app/views/mailer/issue_edit.html.erb b/app/views/mailer/issue_edit.html.erb
index e3b6f5c6c..b68843fba 100644
--- a/app/views/mailer/issue_edit.html.erb
+++ b/app/views/mailer/issue_edit.html.erb
@@ -1,7 +1,7 @@
<% if @journal.private_notes? %>
(<%= l(:field_private_notes) %>)
<% end %>
-<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
+<%= l(:text_issue_updated, :id => link_to("##{@issue.id}", @issue_url), :author => h(@journal.user)).html_safe %>
<ul>
<% details_to_strings(@journal_details, false, :only_path => false).each do |string| %>