diff --git a/app/assets/javascripts/discourse/components/latest-topic-list-item.js.es6 b/app/assets/javascripts/discourse/components/latest-topic-list-item.js.es6 index 07a4c53b2f5..881e5c75b48 100644 --- a/app/assets/javascripts/discourse/components/latest-topic-list-item.js.es6 +++ b/app/assets/javascripts/discourse/components/latest-topic-list-item.js.es6 @@ -3,4 +3,6 @@ import { showEntrance } from "discourse/components/topic-list-item"; export default Ember.Component.extend({ tagName: "tr", click: showEntrance, + classBindings: ['topic.archived'], + attributeBindings: ['topic.id:data-topic-id'] }); diff --git a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs index ab80c70c21f..999e7cbd48f 100644 --- a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs +++ b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs @@ -1,33 +1,27 @@ - - - - - - {{raw "topic-status" topic=topic}} - {{topic-link topic}} - {{#if topic.featured_link}} - {{topic-featured-link topic}} - {{/if}} - {{topic-post-badges newPosts=topic.totalUnread unseen=topic.unseen url=topic.lastUnreadUrl}} - - - {{category-link topic.category}} - {{discourse-tags topic mode="list"}} - - - - - -
- {{#with topic.lastPoster as |lastPoster|}} - {{#user-link user=lastPoster}} - {{avatar lastPoster imageSize="large"}} - {{/user-link}} - {{/with}} -
- {{raw "list/posts-count-column" topic=topic tagName="div"}} - -
+ + {{#with topic.lastPoster as |lastPoster|}} + {{#user-link user=lastPoster}} + {{avatar lastPoster imageSize="large"}} + {{/user-link}} + {{/with}} + + + + {{raw "topic-status" topic=topic}} + {{topic-link topic}} + {{#if topic.featured_link}} + {{topic-featured-link topic}} + {{/if}} + {{topic-post-badges newPosts=topic.totalUnread unseen=topic.unseen url=topic.lastUnreadUrl}} + + + {{category-link topic.category}} + {{discourse-tags topic mode="list"}} + + + + {{raw "list/posts-count-column" topic=topic tagName="div"}} +
+ {{format-date topic.bumpedAt format="tiny" noTitle="true"}} +
+ diff --git a/app/assets/stylesheets/desktop/category-list.scss b/app/assets/stylesheets/desktop/category-list.scss index e6926808ede..c7cfc0dee50 100644 --- a/app/assets/stylesheets/desktop/category-list.scss +++ b/app/assets/stylesheets/desktop/category-list.scss @@ -115,24 +115,13 @@ } } -.categories-and-latest { - - .category-list, - .topic-list-latest { - width: 48%; - } - - .category-list { - float: left; - } - - .topic-list-latest { - float: right; - th.latest { - line-height: 19px; - } +.topic-list-latest { + th.latest { + line-height: 19px; } +} +.categories-and-latest, .topic-list-latest { .main-link { width: 100%; } @@ -158,24 +147,34 @@ padding-left: 8px; } - .topic-list { - .posts { - width: 100%; - text-align: right; - margin-bottom: 10px; - } + .posts { + width: 100%; + text-align: right; + margin-bottom: 10px; + } - .num.posts a { - padding: 0; - } + .num.posts a { + padding: 0; + } - .more-topics, - .no-topics { - border-bottom: none; - td { - padding-right: 0; - color: $primary; - } + .more-topics, + .no-topics { + border-bottom: none; + td { + padding-right: 0; + color: $primary; } } } + +.categories-and-latest { + .category-list { + width: 48%; + float: left; + } + + .topic-list-latest { + width: 48%; + float: right; + } +}