fix spectator link to player

This commit is contained in:
Thibault Duplessis 2015-01-02 12:51:19 +01:00
parent bb9b290d69
commit 22474c5987

View file

@ -19,7 +19,7 @@ module.exports = function(ctrl, player, klass) {
},
class: 'text user_link ' + (player.user.online ? 'online is-green' : 'offline') + (klass ? ' ' + klass : ''),
href: '/@/' + player.user.username,
target: game.isPlayerPlaying(ctrl.data) ? '_blank' : null,
target: game.isPlayerPlaying(ctrl.data) ? '_blank' : '_self',
'data-icon': 'r',
}, [
(player.user.title ? player.user.title + ' ' : '') + player.user.username,