Skip to content
Snippets Groups Projects
Commit e6546927 authored by codedust's avatar codedust
Browse files

Add optional link to CHANGELOG in config.js

Closes #17
parent 4a342e37
Branches
Tags
No related merge requests found
......@@ -859,11 +859,22 @@ var firmwarewizard = function() {
var branches = ObjectValues(config.directories)
.filter(function(value, index, self) { return self.indexOf(value) === index; });
$('#currentVersions').innerHTML = branches.reduce(function(ret, branch, i) {
$('#currentVersions').innerText = '';
if (config.changelog !== undefined) {
var a = document.createElement('a');
a.href = config.changelog;
a.innerText = 'CHANGELOG';
$('#currentVersions').appendChild(a);
var text = document.createTextNode(' // ');
$('#currentVersions').appendChild(text);
}
var versionStr = branches.reduce(function(ret, branch, i) {
ret += ((i === 0) ? '' : ' // ') + branch;
ret += (branch in app.currentVersions) ? (': ' + prettyPrintVersion(app.currentVersions[branch])) : '';
return ret;
}, '');
$('#currentVersions').appendChild(document.createTextNode(versionStr));
}
updateCurrentVersions();
}
......
......@@ -28,5 +28,8 @@ var config = {
'./images/gluon-factory-example.html': 'stable',
'./images/gluon-sysupgrade-example.html': 'stable'
},
preview_pictures: 'pictures/'
// path to preview pictures directory
preview_pictures: 'pictures/',
// link to changelog
changelog: 'CHANGELOG.html'
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment