fix(routes): add fr logos

This commit is contained in:
Ming Di Leom
2021-12-22 10:59:19 +00:00
parent d2b01b7ea7
commit 8f8e665927
4 changed files with 27 additions and 0 deletions
+5
View File
@@ -59,6 +59,11 @@ module.exports = (app, utils) => {
return res.sendFile(wikilessLogo())
}
// fr logos
if(req.url.startsWith('/static/images/mobile/copyright/')) {
return res.sendFile(frLogo(req.url))
}
return next()
})
+4
View File
@@ -451,6 +451,10 @@ module.exports = function(redis) {
return `${static_path}/wikiless-logo.png`
}
this.frLogo = (reqUrl) => {
return path.join(__dirname, '..', 'static', 'fr', path.basename(reqUrl))
}
this.preferencesPage = (req, res) => {
const { default_lang, theme } = req.cookies
let lang_select = '<select id="default_lang" name="default_lang">'
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB