ajout d'une presentation facultative
This commit is contained in:
parent
d0ad0ccfd6
commit
755a91a5b6
|
@ -18,6 +18,8 @@ Docker
|
|||
module.exports = {
|
||||
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(){
|
||||
var sqlite3 = require('sqlite3').verbose();
|
||||
|
|
|
@ -24,7 +24,7 @@ router.get('/', function(req, res, next) {
|
|||
},
|
||||
//aprés toute les opération de la base
|
||||
function() {
|
||||
res.render('index', { title: 'Liste des channel',channels: data });
|
||||
res.render('index', { title: 'Liste des channel',channels: data, presentation: config.presentation });
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
extends layout
|
||||
|
||||
block content
|
||||
|
||||
if(presentation != '')
|
||||
!{presentation}
|
||||
|
||||
h1= title
|
||||
|
||||
ul
|
||||
|
|
Loading…
Reference in New Issue