FIX: Don't show uncategorized badges in digest emails

This commit is contained in:
Robin Ward 2014-01-22 11:27:57 -05:00
parent 745cd0f4e9
commit 502b4730c8

View file

@ -36,7 +36,7 @@
<span class='post-count'><%= t('user_notifications.digest.posts', count: t.posts_count) %></span>
<%- if t.category %><span style='background-color: #<%= t.category.color %>; color: #<%= t.category.text_color %>; font-size: 12px; padding: 4px 6px; font-weight: bold'><%= t.category.name %></span><%- end %>
<%- if t.category && !t.category.uncategorized? %><span style='background-color: #<%= t.category.color %>; color: #<%= t.category.text_color %>; font-size: 12px; padding: 4px 6px; font-weight: bold'><%= t.category.name %></span><%- end %>
</li>
</ul>
<%- end -%>