mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 16:02:46 +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"));
|
||||
}
|
||||
|
||||
if (topic.get("tags")) {
|
||||
topic.get("tags").forEach(tagName => classes.push("tag-" + tagName));
|
||||
}
|
||||
|
||||
if (topic.get("hasExcerpt")) {
|
||||
classes.push("has-excerpt");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user