ajout d'une presentation facultative

This commit is contained in:
Antoine WEBER 2015-09-24 18:34:49 +02:00
parent d0ad0ccfd6
commit 755a91a5b6
3 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,8 @@ Docker
module.exports = { module.exports = {
database: "/home/antoine/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db", database: "/home/antoine/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db",
presentation: "<h1>Bienvenue sur mon serveur</h1><p>Merci de respecter mon upload...</p>",
init_db: function(){ init_db: function(){
var sqlite3 = require('sqlite3').verbose(); var sqlite3 = require('sqlite3').verbose();

View File

@ -24,7 +24,7 @@ router.get('/', function(req, res, next) {
}, },
//aprés toute les opération de la base //aprés toute les opération de la base
function() { function() {
res.render('index', { title: 'Liste des channel',channels: data }); res.render('index', { title: 'Liste des channel',channels: data, presentation: config.presentation });
}); });
}); });

View File

@ -1,6 +1,10 @@
extends layout extends layout
block content block content
if(presentation != '')
!{presentation}
h1= title h1= title
ul ul