Badges page ordering and titles.

This commit is contained in:
Vikhyat Korrapati 2014-05-19 10:23:11 +05:30
parent 6225b83f4a
commit 6b7b328c66
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
export default Ember.ArrayController.extend({
sortProperties: ['displayName'],
sortAscending: true
});

View File

@ -15,5 +15,10 @@ Discourse.BadgesIndexRoute = Discourse.Route.extend({
} else {
return Discourse.Badge.findAll();
}
},
setupController: function(controller, model) {
controller.set('model', model);
Discourse.set('title', I18n.t('badges.title'));
}
});

View File

@ -27,6 +27,7 @@ Discourse.BadgesShowRoute = Ember.Route.extend({
controller.set('userBadgesLoaded', true);
});
controller.set('model', model);
Discourse.set('title', model.get('displayName'));
},
actions: {