Add subcategory badge to digest emails

This commit is contained in:
Neil Lalonde 2014-04-09 13:59:26 -04:00
parent 034287033e
commit 7d760a5145

View File

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