2020-06-06 00:03:37 +02:00
|
|
|
"use strict";
|
2016-04-06 22:34:21 +02:00
|
|
|
|
2020-06-06 00:03:37 +02:00
|
|
|
const views = require("../util/views.js");
|
2016-04-06 22:34:21 +02:00
|
|
|
|
2020-06-06 00:03:37 +02:00
|
|
|
const template = views.getTemplate("user-summary");
|
2016-04-06 22:34:21 +02:00
|
|
|
|
2016-06-14 10:31:48 +02:00
|
|
|
class UserSummaryView {
|
|
|
|
constructor(ctx) {
|
|
|
|
this._hostNode = ctx.hostNode;
|
|
|
|
views.replaceContent(this._hostNode, template(ctx));
|
2016-04-06 22:34:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = UserSummaryView;
|