mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:16:20 +08:00
clean up unused code
Unused PM topic list column 'Users' is removed
This commit is contained in:
parent
a48731e359
commit
65caf04ddc
|
@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if topics}}
|
||||
{{topic-list showParticipants=showParticipants
|
||||
showPosters=showPosters
|
||||
{{topic-list showPosters=showPosters
|
||||
hideCategory=hideCategory
|
||||
topics=topics
|
||||
expandExcerpts=expandExcerpts
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user