From 62ba5ea33f3a61e5fe156c9b91ff7d7902f162c7 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 14 Dec 2016 17:18:16 -0500 Subject: [PATCH] Name before username in summary email --- app/views/user_notifications/digest.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 446c8add754..01cd1ed6560 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -143,10 +143,10 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo <% if t.user %> -
<%= t.user.username -%>
<% if SiteSetting.enable_names? && t.user.name.present? && t.user.name.downcase != t.user.username.downcase %> -

<%= t.user.name -%>

+
<%= t.user.name -%>
<% end %> +

<%= t.user.username -%>

<% end %> <%- if show_image_with_url(t.image_url) -%> @@ -277,10 +277,10 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo <% if post.user %> -
<%= post.user.username -%>
<% if SiteSetting.enable_names? && post.user.name && post.user.name.downcase != post.user.username.downcase %> -

<%= post.user.name -%>

+
<%= post.user.name -%>
<% end %> +

<%= post.user.username -%>

<% end %>