diff --git a/app/assets/javascripts/discourse/app/components/basic-topic-list.js b/app/assets/javascripts/discourse/app/components/basic-topic-list.js index 81c08adf61b..1dac617c725 100644 --- a/app/assets/javascripts/discourse/app/components/basic-topic-list.js +++ b/app/assets/javascripts/discourse/app/components/basic-topic-list.js @@ -6,6 +6,8 @@ export default Component.extend({ loadingMore: alias("topicList.loadingMore"), loading: not("loaded"), + hideMobileAvatar: true, + @discourseComputed("topicList.loaded") loaded() { var topicList = this.topicList; diff --git a/app/assets/javascripts/discourse/app/components/topic-list-item.js b/app/assets/javascripts/discourse/app/components/topic-list-item.js index 030903a3899..529ab3de337 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list-item.js +++ b/app/assets/javascripts/discourse/app/components/topic-list-item.js @@ -187,6 +187,11 @@ export default Component.extend({ return false; }, + @discourseComputed("expandPinned", "hideMobileAvatar") + showMobileAvatar(expandPinned, hideMobileAvatar) { + return !(hideMobileAvatar || expandPinned); + }, + showEntrance, click(e) { diff --git a/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs index b0c43c66390..98a64a01dfa 100644 --- a/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/basic-topic-list.hbs @@ -10,13 +10,13 @@ {{#if topics}} {{topic-list showPosters=showPosters + hideMobileAvatar=hideMobileAvatar hideCategory=hideCategory topics=topics expandExcerpts=expandExcerpts bulkSelectEnabled=bulkSelectEnabled canBulkSelect=canBulkSelect selected=selected - skipHeader=skipHeader tagsForUser=tagsForUser onScroll=onScroll scrollOnLoad=scrollOnLoad diff --git a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs index 46e05f4e4d6..5fbbf9cde68 100644 --- a/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/topic-list.hbs @@ -34,6 +34,7 @@ showTopicPostBadges=showTopicPostBadges hideCategory=hideCategory showPosters=showPosters + hideMobileAvatar=hideMobileAvatar showLikes=showLikes showOpLikes=showOpLikes expandGloballyPinned=expandGloballyPinned diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/basic-topic-list.hbs deleted file mode 100644 index 9a3961ad718..00000000000 --- a/app/assets/javascripts/discourse/app/templates/mobile/components/basic-topic-list.hbs +++ /dev/null @@ -1,70 +0,0 @@ -{{#conditional-loading-spinner condition=loading}} - {{#if hasIncoming}} -
- {{/if}} - - {{#if topics}} -
-
- {{topic-status topic=t}}
- {{topic-link t}}
- {{raw "list/unread-indicator"
- includeUnreadIndicator=showUnreadIndicator
- topicId=t.id
- unreadClass=(if t.unread_by_group_member "" "read")
- }}
- {{#if t.unseen}}
-
- {{/if}}
- {{#if t.hasExcerpt}}
-
-
- {{html-safe t.excerpt}}
- {{#if t.excerptTruncated}}
- {{#unless t.canClearPin}}
- {{i18n "read_more"}}
- {{/unless}}
- {{/if}}
- {{#if t.canClearPin}}
-
- {{i18n "topic.clear_pin.title"}}
-
- {{/if}}
-
- {{/if}}
-
- {{raw "list/post-count-or-badges" topic=t postBadgesEnabled="true"}}
-
-
-
- {{discourse-tags t mode="list" tagsForUser=tagsForUser}}
-
-
- {{raw "list/activity-column" topic=t tagName="div" class="num activity last"}}
- {{t.last_poster_username}}
-
- {{#unless hideCategory}}
-
- {{category-link t.category}}
-
- {{/unless}}
-
- |
-