summaryrefslogtreecommitdiff
path: root/app/views/notify/_note_email.text.erb
blob: f2db321859f9cd6eb7417914ac8b446d127c8330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<%  if @discussion -%>
<%=   @note.author_name -%>
<%    if @discussion.new_discussion? -%>
<%=     " started a new discussion" -%>
<%    else -%>
<%=     " commented on a discussion" -%>
<%    end -%>
<%    if @discussion.diff_discussion? -%>
<%=     " on #{@discussion.file_path}" -%>
<%    end -%>
<%=   ":" -%>


<%  elsif current_application_settings.email_author_in_body -%>
<%=     "#{@note.author_name} commented:" -%>


<%  end -%>
<%  if @discussion&.diff_discussion? -%>
<%    @discussion.truncated_diff_lines(highlight: false).each do |line| -%>
<%=     "> #{line.text}\n" -%>
<%    end -%>

<%  end -%>
<%= @note.note -%>