Reorder filters on user page and name them better (All, Topics, Posts, Responses)

This commit is contained in:
Sam 2013-07-08 12:12:06 +10:00
parent ae6ad734eb
commit 3dbb4ff9bc
2 changed files with 9 additions and 2 deletions

View File

@ -353,8 +353,15 @@ Discourse.User.reopenClass({
});
var result = Em.A();
result.pushObject(responses);
result.pushObjects(stats.rejectProperty('isResponse'));
var insertAt = 1;
result.forEach(function(item, index){
if(item.action_type === Discourse.UserAction.NEW_TOPIC || item.action_type === Discourse.UserAction.POST){
insertAt = index + 1;
}
});
result.insertAt(insertAt, responses);
return(result);
},

View File

@ -146,7 +146,7 @@ en:
"2": "Likes Received"
"3": "Bookmarks"
"4": "Topics"
"5": "Replies"
"5": "Posts"
"6": "Responses"
"7": "Mentions"
"9": "Quotes"