Indicate clearly when running light version on index.html
This commit is contained in:
parent
de60a0a076
commit
f9f26f0d65
3 changed files with 18 additions and 3 deletions
|
@ -36,6 +36,16 @@ a:hover{
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin:90px 0 0 0;
|
margin:90px 0 0 0;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
.title.light:after {
|
||||||
|
content: "light";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
bottom: -5px;
|
||||||
|
color: #499DCE;
|
||||||
|
font-size:.8em;
|
||||||
}
|
}
|
||||||
section{
|
section{
|
||||||
margin: 15px auto;
|
margin: 15px auto;
|
||||||
|
@ -169,6 +179,9 @@ body {
|
||||||
.title{
|
.title{
|
||||||
margin: 25px 0 0 0;
|
margin: 25px 0 0 0;
|
||||||
}
|
}
|
||||||
|
.title.light:after {
|
||||||
|
font-size:.6em;
|
||||||
|
}
|
||||||
.title img{
|
.title img{
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<section>
|
<section>
|
||||||
<h1 class="title"><img src="/images/logo.png" alt="TileServer GL" /></h1>
|
<h1 class="title {{#if is_light}}light{{/if}}"><img src="/images/logo.png" alt="TileServer GL" /></h1>
|
||||||
<h2 class="subtitle">Vector and raster maps with GL styles</h2>
|
<h2 class="subtitle">Vector {{#if is_light}}<s>and raster</s>{{else}}and raster{{/if}} maps with GL styles</h2>
|
||||||
<h2 class="box-header">Styles</h2>
|
<h2 class="box-header">Styles</h2>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{{#each styles}}
|
{{#each styles}}
|
||||||
|
|
|
@ -22,7 +22,8 @@ var packageJson = require('../package'),
|
||||||
serve_data = require('./serve_data'),
|
serve_data = require('./serve_data'),
|
||||||
utils = require('./utils');
|
utils = require('./utils');
|
||||||
|
|
||||||
if (packageJson.name.slice(-6) !== '-light') {
|
var isLight = packageJson.name.slice(-6) == '-light';
|
||||||
|
if (!isLight) {
|
||||||
// do not require `serve_rendered` in the light package
|
// do not require `serve_rendered` in the light package
|
||||||
serve_rendered = require('./serve_rendered');
|
serve_rendered = require('./serve_rendered');
|
||||||
}
|
}
|
||||||
|
@ -212,6 +213,7 @@ module.exports = function(opts, callback) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data['server_version'] = packageJson.name + ' v' + packageJson.version;
|
data['server_version'] = packageJson.name + ' v' + packageJson.version;
|
||||||
|
data['is_light'] = isLight;
|
||||||
data['key_query_part'] =
|
data['key_query_part'] =
|
||||||
req.query.key ? 'key=' + req.query.key + '&' : '';
|
req.query.key ? 'key=' + req.query.key + '&' : '';
|
||||||
data['key_query'] = req.query.key ? '?key=' + req.query.key : '';
|
data['key_query'] = req.query.key ? '?key=' + req.query.key : '';
|
||||||
|
|
Loading…
Reference in a new issue