mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
Reorder filters on user page and name them better (All, Topics, Posts, Responses)
This commit is contained in:
parent
ae6ad734eb
commit
3dbb4ff9bc
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ en:
|
|||
"2": "Likes Received"
|
||||
"3": "Bookmarks"
|
||||
"4": "Topics"
|
||||
"5": "Replies"
|
||||
"5": "Posts"
|
||||
"6": "Responses"
|
||||
"7": "Mentions"
|
||||
"9": "Quotes"
|
||||
|
|
Loading…
Reference in New Issue
Block a user