szurubooru/client/js/views/user_summary_view.js

17 lines
392 B
JavaScript

'use strict';
const BaseView = require('./base_view.js');
class UserSummaryView extends BaseView {
constructor() {
super();
this.template = this.getTemplate('user-summary-template');
}
render(options) {
options.target.innerHTML = this.template({
user: options.user, isPrivate: options.isPrivate});
}
}
module.exports = UserSummaryView;