69fe8ec31a
- Move controls to the "controls/" directory - Make controls interface look similar to each other - Prefix "private" methods and attributes with underscore
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
'use strict';
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
class UserSummaryView {
|
|
constructor() {
|
|
this._template = views.getTemplate('user-summary');
|
|
}
|
|
|
|
render(ctx) {
|
|
const target = ctx.target;
|
|
const source = this._template(ctx);
|
|
views.listenToMessages(source);
|
|
views.showView(target, source);
|
|
}
|
|
}
|
|
|
|
module.exports = UserSummaryView;
|