framework/js/lib/helpers/username.js
2015-04-25 22:28:39 +09:30

6 lines
142 B
JavaScript

export default function username(user) {
var username = (user && user.username()) || '[deleted]';
return m('span.username', username);
}