diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-10 19:43:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-10 19:43:54 +0000 |
commit | 38f540a7019d194fb02ddcd6b4d8bcebef1423f9 (patch) | |
tree | 61250498ecd1ef3f3099ce66d6363c7f1a8d65b0 /app/views | |
parent | 5f10cc867327cd2d2620f10b30ca9c5f2f3a8791 (diff) | |
download | redmine-38f540a7019d194fb02ddcd6b4d8bcebef1423f9.tar.gz redmine-38f540a7019d194fb02ddcd6b4d8bcebef1423f9.zip |
Added custom fields in issue related mail notifications.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@822 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/mailer/_issue_text_html.rhtml | 12 | ||||
-rw-r--r-- | app/views/mailer/_issue_text_plain.rhtml | 11 |
2 files changed, 17 insertions, 6 deletions
diff --git a/app/views/mailer/_issue_text_html.rhtml b/app/views/mailer/_issue_text_html.rhtml index 33527a145..80885ebab 100644 --- a/app/views/mailer/_issue_text_html.rhtml +++ b/app/views/mailer/_issue_text_html.rhtml @@ -2,9 +2,15 @@ <%= issue.subject %> <ul> - <li><%=l(:field_author)%>: <%= issue.author.name %></li> - <li><%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %></li> - <li><%=l(:field_status)%>: <%= issue.status.name %></li> +<li><%=l(:field_author)%>: <%= issue.author %></li> +<li><%=l(:field_status)%>: <%= issue.status %></li> +<li><%=l(:field_priority)%>: <%= issue.priority %></li> +<li><%=l(:field_assigned_to)%>: <%= issue.assigned_to %></li> +<li><%=l(:field_category)%>: <%= issue.category %></li> +<li><%=l(:field_fixed_version)%>: <%= issue.fixed_version %></li> +<% issue.custom_values.each do |c| %> + <li><%= c.custom_field.name %>: <%= show_value(c) %></li> +<% end %> </ul> <%= textilizable(issue.description) %> diff --git a/app/views/mailer/_issue_text_plain.rhtml b/app/views/mailer/_issue_text_plain.rhtml index 6c23fcd14..5e211f9af 100644 --- a/app/views/mailer/_issue_text_plain.rhtml +++ b/app/views/mailer/_issue_text_plain.rhtml @@ -1,8 +1,13 @@ <%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %> <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'issues', :action => 'show', :id => issue %> -<%=l(:field_author)%>: <%= issue.author.name %> -<%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %> -<%=l(:field_status)%>: <%= issue.status.name %> +<%=l(:field_author)%>: <%= issue.author %> +<%=l(:field_status)%>: <%= issue.status %> +<%=l(:field_priority)%>: <%= issue.priority %> +<%=l(:field_assigned_to)%>: <%= issue.assigned_to %> +<%=l(:field_category)%>: <%= issue.category %> +<%=l(:field_fixed_version)%>: <%= issue.fixed_version %> +<% issue.custom_values.each do |c| %><%= c.custom_field.name %>: <%= show_value(c) %> +<% end %> <%= issue.description %> |