discourse/app/views/email/_post.html.erb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
1.3 KiB
Plaintext
Raw Normal View History

<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="user-name 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>