mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/views: refactor rendering
This commit is contained in:
@ -8,8 +8,10 @@ class UserSummaryView extends BaseView {
|
||||
this.template = this.getTemplate('user-summary-template');
|
||||
}
|
||||
|
||||
render(options) {
|
||||
options.target.innerHTML = this.template(options);
|
||||
render(ctx) {
|
||||
const target = ctx.target;
|
||||
const source = this.template(ctx);
|
||||
this.showView(target, source);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user