UX: Show User popup when clicking on a user in the topic list.

This commit is contained in:
Robin Ward
2014-08-19 16:20:55 -04:00
parent 9c7bc57121
commit b46a373ff9
14 changed files with 110 additions and 66 deletions

View File

@ -5,6 +5,18 @@ var ApplicationRoute = Em.Route.extend({
this.controllerFor('topic-entrance').send('show', data);
},
composePrivateMessage: function(user) {
var self = this;
this.transitionTo('userActivity', user).then(function () {
self.controllerFor('user-activity').send('composePrivateMessage');
});
},
expandUser: function(user) {
this.controllerFor('poster-expansion').show(user.get('username'), user.get('uploaded_avatar_id'));
return true;
},
error: function(err, transition) {
if (err.status === 404) {
// 404