Convert latest-topic-list to components and remove nested tables

This commit is contained in:
Robin Ward
2017-08-13 12:13:02 -04:00
parent 9e475860e0
commit 8ccde140e5
11 changed files with 146 additions and 124 deletions
@@ -0,0 +1,3 @@
export default Ember.Component.extend({
tagName: ''
});
@@ -1,6 +1,7 @@
import { showEntrance } from "discourse/components/topic-list-item";
export default Ember.Component.extend({
tagName: "tr",
click: showEntrance,
attributeBindings: ['topic.id:data-topic-id'],
classNameBindings: [':latest-topic-list-item', 'topic.archived']
});
@@ -0,0 +1,3 @@
export default Ember.Component.extend({
classNames: ['latest-topic-list']
});