Added default logo to the page
This commit is contained in:
parent
daaee2b971
commit
f5b9e0e0d5
|
@ -11,9 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div id='header-inner'>
|
<div id='header-inner'>
|
||||||
{{#if logo}}
|
|
||||||
<a href='/'><img id='logo' alt='{{ name }}' title='{{ name }}' src='/-/logo' /></a>
|
<a href='/'><img id='logo' alt='{{ name }}' title='{{ name }}' src='/-/logo' /></a>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class='center'>
|
<div class='center'>
|
||||||
<article id='setup'>
|
<article id='setup'>
|
||||||
|
|
11
lib/index.js
11
lib/index.js
|
@ -138,8 +138,7 @@ module.exports = function(config_hash) {
|
||||||
res.send(template({
|
res.send(template({
|
||||||
name: config.title || "Sinopia",
|
name: config.title || "Sinopia",
|
||||||
packages: packages,
|
packages: packages,
|
||||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/',
|
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||||
logo: config.logo
|
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -247,13 +246,7 @@ module.exports = function(config_hash) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/-/logo', function(req, res, next) {
|
app.get('/-/logo', function(req, res, next) {
|
||||||
if(config.logo) {
|
res.sendfile(config.logo ? config.logo : __dirname + "/static/logo.png");
|
||||||
res.sendfile(config.logo);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
res.status(404);
|
|
||||||
res.send("File Not Found");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Search
|
// Search
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue