2016-04-29 11:48:34 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
|
2016-05-11 12:17:40 +02:00
|
|
|
class UsersPageView {
|
2016-04-29 11:48:34 +02:00
|
|
|
constructor() {
|
2016-05-20 21:35:12 +02:00
|
|
|
this._template = views.getTemplate('users-page');
|
2016-04-29 11:48:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
render(ctx) {
|
|
|
|
const target = ctx.target;
|
2016-05-20 21:35:12 +02:00
|
|
|
const source = this._template(ctx);
|
2016-04-29 11:48:34 +02:00
|
|
|
views.showView(target, source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-11 12:17:40 +02:00
|
|
|
module.exports = UsersPageView;
|