discourse/app/views/email/_post.html.erb
Robin Ward 5c7d6e0a3c FIX: Don't display names on emails if display_name_on_posts is false
Note that `enable_names` was always respected.
2015-04-22 16:15:23 -04:00

24 lines
893 B
Plaintext

<table class='post-wrapper'>
<tbody>
<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>
<tr>
<td class='body'><%= format_for_email(post.cooked) %></td>
</tr>
</tbody>
</table>