2017-05-16 04:24:33 +08:00
|
|
|
<div class='post-wrapper <%= post.whisper? ? "whisper" : "" %> <%= use_excerpt ? "excerpt" : ""%>'>
|
|
|
|
<table>
|
2013-07-24 15:13:15 +08:00
|
|
|
<tr>
|
2017-05-16 04:24:33 +08:00
|
|
|
<td class='user-avatar'>
|
|
|
|
<img src="<%= post.user.small_avatar_url %>" title="<%= post.user.username%>">
|
|
|
|
</td>
|
2013-07-26 15:27:46 +08:00
|
|
|
<td>
|
2020-02-20 20:15:14 +08:00
|
|
|
<%- if SiteSetting.prioritize_username_in_ux %>
|
|
|
|
<a class="username username-link" href="<%=Discourse.base_url%>/u/<%= post.user.username_lower%>" target="_blank"><%= post.user.username %></a>
|
|
|
|
<%- if show_name_on_post(post) %>
|
|
|
|
<span class='user-name username-title'><%= post.user.name %></span>
|
|
|
|
<% end %>
|
|
|
|
<%- else %>
|
2020-02-20 20:21:37 +08:00
|
|
|
<a class="username username-link" href="<%=Discourse.base_url%>/u/<%= post.user.username_lower%>" target="_blank"><%= post.user.name %></a>
|
2020-02-20 20:15:14 +08:00
|
|
|
<%- if show_username_on_post(post) %>
|
|
|
|
<span class='username username-title'><%= post.user.username %></span>
|
|
|
|
<% end %>
|
|
|
|
<%- end %>
|
2017-05-16 04:24:33 +08:00
|
|
|
<%- if post.user.title.present? %>
|
|
|
|
<span class='user-title'><%= post.user.title %></span>
|
|
|
|
<% end %>
|
|
|
|
<br>
|
2020-06-17 23:29:37 +08:00
|
|
|
<span class='notification-date'><%= short_date(post.created_at) %></span>
|
2013-07-24 15:13:15 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-05-16 04:24:33 +08:00
|
|
|
</table>
|
|
|
|
<div class='body'><%= format_for_email(post, use_excerpt) %></div>
|
|
|
|
</div>
|