mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
fix(routes): add fr logos
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user