clean up unused code

Unused PM topic list column 'Users' is removed
This commit is contained in:
Vinoth Kannan 2019-01-25 20:13:54 +05:30
parent a48731e359
commit 65caf04ddc
7 changed files with 2 additions and 21 deletions

View File

@ -11,8 +11,7 @@ export default Discourse.Route.extend(ViewingActionType, {
this.controllerFor("user-activity").set("userActionType", userActionType);
this.controllerFor("user-topics-list").setProperties({
model,
hideCategory: false,
showParticipants: false
hideCategory: false
});
}
});

View File

@ -10,8 +10,7 @@
{{/if}}
{{#if topics}}
{{topic-list showParticipants=showParticipants
showPosters=showPosters
{{topic-list showPosters=showPosters
hideCategory=hideCategory
topics=topics
expandExcerpts=expandExcerpts

View File

@ -7,7 +7,6 @@
showPosters=showPosters
showLikes=showLikes
showOpLikes=showOpLikes
showParticipants=showParticipants
order=order
ascending=ascending
sortable=sortable
@ -35,7 +34,6 @@
showTopicPostBadges=showTopicPostBadges
hideCategory=hideCategory
showPosters=showPosters
showParticipants=showParticipants
showLikes=showLikes
showOpLikes=showOpLikes
expandGloballyPinned=expandGloballyPinned

View File

@ -44,10 +44,6 @@
{{raw "list/posts-count-column" topic=topic}}
{{#if showParticipants}}
{{raw "list/posters-column" posters=topic.participants}}
{{/if}}
{{#if showLikes}}
<td class="num likes">
{{#if hasLikes}}

View File

@ -46,13 +46,6 @@
{{category-link t.category}}
</div>
{{/unless}}
{{#if showParticipants}}
<div class='participants'>
{{#each participants as |p|}}
<a href="{{unbound p.user.path}}" class="{{unbound p.extras}}">{{avatar p usernamePath="user.username" imageSize="small"}}</a>
{{/each}}
</div>
{{/if}}
<div class="clearfix"></div>
</div>
</td>

View File

@ -10,9 +10,6 @@
{{raw "topic-list-header-column" order='posters'}}
{{/if}}
{{raw "topic-list-header-column" sortable=sortable number='true' order='posts' name='replies'}}
{{#if showParticipants}}
{{raw "topic-list-header-column" order='participants' name='users'}}
{{/if}}
{{#if showLikes}}
{{raw "topic-list-header-column" sortable=sortable number='true' order='likes' name='likes'}}
{{/if}}

View File

@ -1,7 +1,6 @@
{{#load-more class="paginated-topics-list" selector=".paginated-topics-list .topic-list tr" action=(action "loadMore")}}
{{basic-topic-list topicList=model
hideCategory=hideCategory
showParticipants=showParticipants
showPosters=showPosters
bulkSelectEnabled=bulkSelectEnabled
selected=selected