From e436285b6f4aba7fe02a9d61b61afa0dccf686d7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang <jp_lang@yahoo.fr> Date: Sun, 8 Apr 2012 19:25:26 +0000 Subject: [PATCH] Slight changes to the plain text issue notification. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9369 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/mailer/_issue.text.erb | 18 +++++++++--------- app/views/mailer/issue_edit.text.erb | 5 ++++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/app/views/mailer/_issue.text.erb b/app/views/mailer/_issue.text.erb index bea2a5813..427b6a890 100644 --- a/app/views/mailer/_issue.text.erb +++ b/app/views/mailer/_issue.text.erb @@ -1,13 +1,13 @@ <%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %> <%= issue_url %> -<%=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_field_values.each do |c| %><%= c.custom_field.name %>: <%= show_value(c) %> -<% end %> - +* <%=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_field_values.each do |c| %>* <%= c.custom_field.name %>: <%= show_value(c) %> +<% end -%> +---------------------------------------- <%= issue.description %> diff --git a/app/views/mailer/issue_edit.text.erb b/app/views/mailer/issue_edit.text.erb index 1f7e7dc32..0f7ee51f5 100644 --- a/app/views/mailer/issue_edit.text.erb +++ b/app/views/mailer/issue_edit.text.erb @@ -4,6 +4,9 @@ <%= string %> <% end -%> -<%= @journal.notes if @journal.notes? %> +<% if @journal.notes? -%> +<%= @journal.notes %> + +<% end -%> ---------------------------------------- <%= render :partial => "issue.text.erb", :locals => { :issue => @issue, :issue_url => @issue_url } %>