mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:33:37 +08:00
Merge pull request #5723 from featheredtoast/topic-list-item-unread-classnames
Feature: Add unseen-topic and new-posts classnames to topic list items
This commit is contained in:
commit
d4ebbd12a6
|
@ -63,8 +63,15 @@ export default Ember.Component.extend(bufferedRender({
|
|||
classes.push('has-excerpt');
|
||||
}
|
||||
|
||||
if (topic.get('unseen')) {
|
||||
classes.push("unseen-topic");
|
||||
}
|
||||
|
||||
['liked', 'archived', 'bookmarked', 'pinned'].forEach(name => {
|
||||
if (topic.get('displayNewPosts')) {
|
||||
classes.push("new-posts");
|
||||
}
|
||||
|
||||
['liked', 'archived', 'bookmarked', 'pinned', 'closed'].forEach(name => {
|
||||
if (topic.get(name)) {
|
||||
classes.push(name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user