szurubooru/client/js/views/user_summary_view.js

18 lines
388 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(target);
views.showView(target, source);
}
}
module.exports = UserSummaryView;