2016-04-06 22:34:21 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-09 18:54:23 +02:00
|
|
|
const views = require('../util/views.js');
|
2016-04-06 22:34:21 +02:00
|
|
|
|
2016-04-09 18:54:23 +02:00
|
|
|
class UserSummaryView {
|
2016-04-06 22:34:21 +02:00
|
|
|
constructor() {
|
2016-04-09 18:54:23 +02:00
|
|
|
this.template = views.getTemplate('user-summary');
|
2016-04-06 22:34:21 +02:00
|
|
|
}
|
|
|
|
|
2016-04-08 10:35:38 +02:00
|
|
|
render(ctx) {
|
|
|
|
const target = ctx.target;
|
|
|
|
const source = this.template(ctx);
|
2016-04-09 18:54:23 +02:00
|
|
|
views.listenToMessages(target);
|
|
|
|
views.showView(target, source);
|
2016-04-06 22:34:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = UserSummaryView;
|