2016-03-31 22:33:49 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-03-31 23:18:08 +02:00
|
|
|
const util = require('../util.js');
|
2016-03-31 22:33:49 +02:00
|
|
|
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-03-31 23:18:08 +02:00
|
|
|
name: config.basic.name,
|
|
|
|
version: config.meta.version,
|
|
|
|
buildDate: util.formatRelativeTime(config.meta.buildDate),
|
2016-03-31 22:33:49 +02:00
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = HomeView;
|