szurubooru/client/js/views/home_view.js

22 lines
465 B
JavaScript
Raw Normal View History

2016-03-31 22:33:49 +02:00
'use strict';
const config = require('../config.js');
const BaseView = require('./base_view.js');
class HomeView extends BaseView {
constructor() {
super();
this.template = this.getTemplate('home-template');
}
render(section) {
this.showView(this.template({
2016-04-06 20:38:45 +02:00
name: config.name,
2016-03-31 23:18:08 +02:00
version: config.meta.version,
2016-04-05 17:57:26 +02:00
buildDate: config.meta.buildDate,
2016-03-31 22:33:49 +02:00
}));
}
}
module.exports = HomeView;