mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:52:45 +08:00
Add subcategory badge to digest emails
This commit is contained in:
parent
034287033e
commit
7d760a5145
|
@ -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;'> </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 -%>
|
||||
|
|
Loading…
Reference in New Issue
Block a user