mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 21:24:06 +08:00
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
<div class='post-wrapper <%= post.whisper? ? "whisper" : "" %> <%= use_excerpt ? "excerpt" : ""%>'>
|
|
<table>
|
|
<tr>
|
|
<td class='user-avatar'>
|
|
<img src="<%= post.user.small_avatar_url %>" title="<%= post.user.username%>">
|
|
</td>
|
|
<td>
|
|
<%- 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 %>
|
|
<a class="username username-link" href="<%=Discourse.base_url%>/u/<%= post.user.username_lower%>" target="_blank"><%= post.user.name %></a>
|
|
<%- if show_username_on_post(post) %>
|
|
<span class='username username-title'><%= post.user.username %></span>
|
|
<% end %>
|
|
<%- 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>
|
|
<div class='body'><%= format_for_email(post, use_excerpt) %></div>
|
|
</div>
|