branding: add template variables

we can now have %YEAR% and %VERSION% in the footer
This commit is contained in:
Girish Ramakrishnan
2020-10-18 10:15:36 -07:00
parent 9ca8e49a4e
commit 2aa5c387c7
5 changed files with 24 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ exports = module.exports = {
SUPPORT_EMAIL: 'support@cloudron.io',
FOOTER: '&copy; 2020 &nbsp; [Cloudron](https://cloudron.io) &nbsp; &nbsp; &nbsp; [Forum <i class="fa fa-comments"></i>](https://forum.cloudron.io)',
FOOTER: '&copy; %YEAR% &nbsp; [Cloudron](https://cloudron.io) &nbsp; &nbsp; &nbsp; [Forum <i class="fa fa-comments"></i>](https://forum.cloudron.io)',
VERSION: process.env.BOX_ENV === 'cloudron' ? fs.readFileSync(path.join(__dirname, '../VERSION'), 'utf8').trim() : '5.1.1-test'
};