framework/js/lib/helpers/username.js

6 lines
142 B
JavaScript
Raw Normal View History

2015-04-25 20:58:39 +08:00
export default function username(user) {
var username = (user && user.username()) || '[deleted]';
return m('span.username', username);
}