Badges page ordering and titles.
This commit is contained in:
parent
6225b83f4a
commit
6b7b328c66
|
@ -0,0 +1,4 @@
|
|||
export default Ember.ArrayController.extend({
|
||||
sortProperties: ['displayName'],
|
||||
sortAscending: true
|
||||
});
|
|
@ -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'));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -27,6 +27,7 @@ Discourse.BadgesShowRoute = Ember.Route.extend({
|
|||
controller.set('userBadgesLoaded', true);
|
||||
});
|
||||
controller.set('model', model);
|
||||
Discourse.set('title', model.get('displayName'));
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
Loading…
Reference in New Issue