Commit 85c35f18 authored by Dave Lane's avatar Dave Lane
Browse files

fixed syntax error

parent cc8682a1
......@@ -227,6 +227,7 @@ function getGenerator(lang='') {
gen = '<a href="' + GENERATOR_URL + '" title="Généré par ' + GENERATOR + ' version ' + VERSION + '">' + GENERATOR + '</a>, mise à jour ' + ts;
} else {
gen = '<a href="' + GENERATOR_URL + '" title="Created by ' + GENERATOR + ' version ' + VERSION + '">' + GENERATOR + '</a>, updated ' + ts;
}
return gen;
}
......@@ -243,12 +244,12 @@ function getNotices(outlineItem, iconsrc) {
disclaimertext = (opt['--disclaimertext']) ? opt['--disclaimertext'] : "Disclaimer";
disclaimer = ` ${divider} <a href="${opt['--disclaimer']}">${disclaimertext}</a>`;
}
var notices = `<div class="links"><a href="${terms}">${termstext}</a>${divider}<a href="${privacy}">${privacytext}</a>${divider}<a href="https://wikieducator.org${outlineItem.wkpage}?action=history">${authortext}</a>${disclaimer}</div>`;
var notices = `<div class="links"><a href="${terms}">${termstext}</a>${divider}<a href="${privacy}">${privacytext}</a>${divider}<a href="https://wikieducator.org${outlineItem.wkpage}?action=history">${authorstext}</a>${disclaimer}</div>`;
var generator = getGenerator(); // default option
var outline_link = opt.OUTLINE;
if (opt['--language'] && opt['--language'] == 'fr_FR') {
generator = getGenerator(opt['--language']); // special option
notices += `<div class="copyright"><a href="${contentURL}" title="original content in WikiEducator" target="WikiEducator">Œuvres</a>`;
notices += `<div class="copyright"><a href="${contentURL}" title="contenu original dans WikiEducator" target="WikiEducator">Œuvres</a>`;
notices += ` disponibles sous licence <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/" title="CC-BY-SA 4.0 Internationale">Creative Commons CC-BY-SA</a> (Attribution - Partage dans les mêmes conditions).`;
notices += ` <a href="https://creativecommons.org/licenses/by-sa/4.0/"><img class="cc" src="${iconsrc}" alt="Creative Commons CC-BY-SA (Attribution - Partage dans les mêmes conditions)"></a></div>`;
notices += `<div class="generator">${generator} à partir de cet <a href="${outline_link}">aperçu</a>.</div>`;
......@@ -266,7 +267,7 @@ function getTimestamp() {
var d = new Date();
// timestamp = d.toLocaleString(); // "8/12/2013 18.55.38"
// strip the day off - first 5 characters
timestamp = d.toUTCString().slice(5); // "Sun, 08 Dec 2013 17:55:38 GMT"
timestamp = d.toUTCString().slice(5); // "Sun, 08 Dec 2013 17:55:38 GMT"
}
return timestamp;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment