FIX: Show category text color in oneboxes
This commit is contained in:
parent
c9cca78ab2
commit
e3a151d66a
|
@ -67,7 +67,7 @@ module Oneboxer
|
|||
|
||||
category = topic.category
|
||||
if category
|
||||
category = "<a href=\"/category/#{category.slug}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}\">#{category.name}</a>"
|
||||
category = "<a href=\"/category/#{category.slug}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}; color: ##{category.text_color}\">#{category.name}</a>"
|
||||
end
|
||||
|
||||
quote = post.excerpt(SiteSetting.post_onebox_maxlength)
|
||||
|
|
Loading…
Reference in New Issue