mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:42:57 +08:00
820a435af8
We no longer include previous replies as "context", instead we include and excerpt of the post being replied to at the bottom of notifications, this information was previously missing. Users may opt in to emailing previous replies if they wish or opt out of "in-reply-to" which makes sense in some email clients that are smarter about displaying a tree of replies.
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<table class='post-wrapper <%= post.whisper? ? "whisper" : "" %> <%= use_excerpt ? "excerpt" : ""%>'>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<td class='user-avatar'>
|
|
<img src="<%= post.user.small_avatar_url %>" title="<%= post.user.username%>">
|
|
</td>
|
|
<td>
|
|
<a class="username" href="<%=Discourse.base_url%>/users/<%= post.user.username_lower%>" target="_blank"><%= post.user.username %></a>
|
|
<%- if show_name_on_post(post) %>
|
|
<a class="user-name" href="<%=Discourse.base_url%>/users/<%= post.user.username_lower%>" target="_blank"><%= post.user.name %></a>
|
|
<% end %>
|
|
<%- if post.user.title.present? %>
|
|
<span class='user-title'><%= post.user.title %></span>
|
|
<% end %>
|
|
<br>
|
|
<span class='notification-date'><%= l post.created_at, format: :short_no_year %></span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='body'><%= format_for_email(use_excerpt ? post.excerpt : post.cooked) %></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|