From 7d760a5145e0d1abac1a9f9b54466d40aec2938a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 9 Apr 2014 13:59:26 -0400 Subject: [PATCH] Add subcategory badge to digest emails --- app/views/user_notifications/digest.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 465fd6fd53a..0323f69e2e9 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -36,7 +36,9 @@ <%= t('user_notifications.digest.posts', count: t.posts_count) %> - <%- if t.category && !t.category.uncategorized? %><%= t.category.name %><%- end %> + <%- if t.category && !t.category.uncategorized? %> + <%- if t.category.parent_category %> <%- end %><%= t.category.name %> + <%- end %> <%- end -%>