diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6 index 3b63069ed76..d8560778bbd 100644 --- a/app/assets/javascripts/discourse/models/topic.js.es6 +++ b/app/assets/javascripts/discourse/models/topic.js.es6 @@ -8,6 +8,8 @@ const Topic = RestModel.extend({ message: null, errorLoading: false, + creator: Ember.computed.alias("posters.firstObject.user"), + @computed('fancy_title') fancyTitle(title) { title = title || ""; diff --git a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs index aa4370c966a..5de5683412e 100644 --- a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs @@ -1,28 +1,35 @@ - -
- {{raw "list/post-count-or-badges" topic=content postBadgesEnabled=controller.showTopicPostBadges}} -
-
+
+ {{avatar topic.creator imageSize="large"}} +
-
- {{#unless controller.hideCategory}} -
- {{category-link content.category}} +
+ - {{/unless}} - {{plugin-outlet "topic-list-tags"}} -
-
- {{raw "list/activity-column" topic=content tagName="span" class="age"}} - {{content.last_poster_username}} +
+ {{raw "list/post-count-or-badges" topic=content postBadgesEnabled=controller.showTopicPostBadges}} +
+ +
+ {{#unless controller.hideCategory}} +
+ {{category-link content.category}} +
+ {{/unless}} + + {{plugin-outlet "topic-list-tags"}} + + + +
-
-
diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scss index 50966703f74..f9b6990e4e0 100644 --- a/app/assets/stylesheets/mobile/topic-list.scss +++ b/app/assets/stylesheets/mobile/topic-list.scss @@ -63,6 +63,14 @@ .topic-list { + .creator { + margin-left: 5px; + } + + .right { + margin-left: 60px; + } + > tbody > tr { &.highlighted { background-color: dark-light-choose(scale-color($tertiary, $lightness: 85%), scale-color($tertiary, $lightness: -55%));