From 5d20d02ffce1e5fdc1976bf79b977e710d5d6e0d Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Mon, 18 Mar 2019 18:58:29 +0100 Subject: [PATCH] UX: add tag classes to topics in topics list view (#7198) --- .../javascripts/discourse/components/topic-list-item.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/components/topic-list-item.js.es6 b/app/assets/javascripts/discourse/components/topic-list-item.js.es6 index b2cc3943445..19065d41cf1 100644 --- a/app/assets/javascripts/discourse/components/topic-list-item.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-list-item.js.es6 @@ -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"); }