UX: add tag classes to topics in topics list view (#7198)

This commit is contained in:
Maja Komel 2019-03-18 18:58:29 +01:00 committed by Robin Ward
parent e2d6edd5ff
commit 5d20d02ffc

View File

@ -71,6 +71,10 @@ export default Ember.Component.extend(
classes.push("category-" + topic.get("category.fullSlug"));
}
if (topic.get("tags")) {
topic.get("tags").forEach(tagName => classes.push("tag-" + tagName));
}
if (topic.get("hasExcerpt")) {
classes.push("has-excerpt");
}