UX: rename posts -> replies (and change to be posts-1)

This commit is contained in:
Sam 2015-03-02 15:59:23 +11:00
parent 37fefc16de
commit 14feec8aac
5 changed files with 8 additions and 4 deletions

View File

@ -26,6 +26,10 @@ const Topic = Discourse.Model.extend({
return PostStream.create({topic: this});
}.property(),
replyCount: function() {
return this.get('posts_count') - 1;
}.property('posts_count'),
details: function() {
return TopicDetails.create({topic: this});
}.property(),

View File

@ -1,3 +1,3 @@
<{{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 File

@ -10,7 +10,7 @@
{{#if showPosters}}
{{raw "topic-list-header-column" order='posters' name='users'}}
{{/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}}
{{raw "topic-list-header-column" order='participants' name='users'}}
{{/if}}

View File

@ -11,7 +11,7 @@ export default Ember.Object.extend({
title: function() {
return I18n.messageFormat('posts_likes_MF', {
count: this.get('topic.posts_count'),
count: this.get('topic.replyCount'),
ratio: this.get('ratioText')
}).trim();
}.property(),

View File

@ -1407,7 +1407,7 @@ en:
posts_lowercase: "posts"
posts_long: "there are {{number}} posts in this topic"
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}
med {with a very high like to post ratio}
high {with an extremely high like to post ratio}