mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Merge pull request #2735 from techAPJ/patch-3
suppress post count on avatar for single post
This commit is contained in:
commit
03a7b01e4b
3 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
export default Ember.Component.extend({
|
||||
|
||||
postStream: Em.computed.alias('participant.topic.postStream'),
|
||||
showPostCount: Em.computed.gte('participant.post_count', 2),
|
||||
|
||||
toggled: function() {
|
||||
return this.get('postStream.userFilters').contains(this.get('participant.username'));
|
||||
|
|
|
@ -88,5 +88,3 @@ export default ObjectController.extend({
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<a href='#' {{bind-attr class=":poster toggled"}} {{action toggle}} title="{{unbound participant.username}}">
|
||||
<span class='post-count'>{{unbound participant.post_count}}</span>
|
||||
{{#if showPostCount}}
|
||||
<span class='post-count'>{{unbound participant.post_count}}</span>
|
||||
{{/if}}
|
||||
{{avatar participant imageSize="medium"}}
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue