ajout d'une presentation facultative
This commit is contained in:
parent
d0ad0ccfd6
commit
755a91a5b6
@ -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();
|
||||||
|
@ -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 });
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
|
|
||||||
|
if(presentation != '')
|
||||||
|
!{presentation}
|
||||||
|
|
||||||
h1= title
|
h1= title
|
||||||
|
|
||||||
ul
|
ul
|
||||||
|
Loading…
Reference in New Issue
Block a user