mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 06:31:45 +08:00
UX: add tag classes to topics in topics list view (#7198)
This commit is contained in:
parent
e2d6edd5ff
commit
5d20d02ffc
|
@ -71,6 +71,10 @@ export default Ember.Component.extend(
|
||||||
classes.push("category-" + topic.get("category.fullSlug"));
|
classes.push("category-" + topic.get("category.fullSlug"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (topic.get("tags")) {
|
||||||
|
topic.get("tags").forEach(tagName => classes.push("tag-" + tagName));
|
||||||
|
}
|
||||||
|
|
||||||
if (topic.get("hasExcerpt")) {
|
if (topic.get("hasExcerpt")) {
|
||||||
classes.push("has-excerpt");
|
classes.push("has-excerpt");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user