UX: rename posts -> replies (and change to be posts-1)
This commit is contained in:
parent
37fefc16de
commit
14feec8aac
|
@ -26,6 +26,10 @@ const Topic = Discourse.Model.extend({
|
||||||
return PostStream.create({topic: this});
|
return PostStream.create({topic: this});
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
|
replyCount: function() {
|
||||||
|
return this.get('posts_count') - 1;
|
||||||
|
}.property('posts_count'),
|
||||||
|
|
||||||
details: function() {
|
details: function() {
|
||||||
return TopicDetails.create({topic: this});
|
return TopicDetails.create({topic: this});
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<{{view.tagName}} class='num posts-map posts {{view.likesHeat}}' title='{{view.title}}'>
|
<{{view.tagName}} class='num posts-map posts {{view.likesHeat}}' title='{{view.title}}'>
|
||||||
<a href class='posts-map badge-posts {{view.likesHeat}}'>{{topic.posts_count}}</a>
|
<a href class='posts-map badge-posts {{view.likesHeat}}'>{{topic.replyCount}}</a>
|
||||||
</{{view.tagName}}>
|
</{{view.tagName}}>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{#if showPosters}}
|
{{#if showPosters}}
|
||||||
{{raw "topic-list-header-column" order='posters' name='users'}}
|
{{raw "topic-list-header-column" order='posters' name='users'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{raw "topic-list-header-column" sortable=sortable number='true' order='posts' name='posts'}}
|
{{raw "topic-list-header-column" sortable=sortable number='true' order='posts' name='replies'}}
|
||||||
{{#if showParticipants}}
|
{{#if showParticipants}}
|
||||||
{{raw "topic-list-header-column" order='participants' name='users'}}
|
{{raw "topic-list-header-column" order='participants' name='users'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -11,7 +11,7 @@ export default Ember.Object.extend({
|
||||||
|
|
||||||
title: function() {
|
title: function() {
|
||||||
return I18n.messageFormat('posts_likes_MF', {
|
return I18n.messageFormat('posts_likes_MF', {
|
||||||
count: this.get('topic.posts_count'),
|
count: this.get('topic.replyCount'),
|
||||||
ratio: this.get('ratioText')
|
ratio: this.get('ratioText')
|
||||||
}).trim();
|
}).trim();
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
|
@ -1407,7 +1407,7 @@ en:
|
||||||
posts_lowercase: "posts"
|
posts_lowercase: "posts"
|
||||||
posts_long: "there are {{number}} posts in this topic"
|
posts_long: "there are {{number}} posts in this topic"
|
||||||
posts_likes_MF: |
|
posts_likes_MF: |
|
||||||
This topic has {count, plural, one {1 post} other {# posts}} {ratio, select,
|
This topic has {count, plural, one {1 reply} other {# replies}} {ratio, select,
|
||||||
low {with a high like to post ratio}
|
low {with a high like to post ratio}
|
||||||
med {with a very high like to post ratio}
|
med {with a very high like to post ratio}
|
||||||
high {with an extremely high like to post ratio}
|
high {with an extremely high like to post ratio}
|
||||||
|
|
Loading…
Reference in New Issue