mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
split files into client/ and server/
This commit is contained in:
22
client/js/views/home_view.js
Normal file
22
client/js/views/home_view.js
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
const util = require('../util.js');
|
||||
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({
|
||||
name: config.basic.name,
|
||||
version: config.meta.version,
|
||||
buildDate: util.formatRelativeTime(config.meta.buildDate),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HomeView;
|
Reference in New Issue
Block a user