From 01fdac533815584394d6dcc4baa79445b3cb2e0a Mon Sep 17 00:00:00 2001 From: jkaplon Date: Thu, 7 Jul 2016 08:29:57 -0400 Subject: [PATCH] Add banner background image everywhere, rename index template to location. --- server.js | 2 +- views/default.hbs | 3 ++- views/home.hbs | 2 +- views/{index.hbs => location.hbs} | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename views/{index.hbs => location.hbs} (85%) diff --git a/server.js b/server.js index b5582a1..700e46a 100644 --- a/server.js +++ b/server.js @@ -136,7 +136,7 @@ app.get('/:loc', function(req, res) { row.statusclass = 'closed'; } else { row.statusclass = 'open'; } }); - res.render('index', {values: result.rows}, function(err, html) { + res.render('location', {values: result.rows}, function(err, html) { if(err !== null) { winston.error(err); } else { diff --git a/views/default.hbs b/views/default.hbs index 393147c..1759fb7 100644 --- a/views/default.hbs +++ b/views/default.hbs @@ -30,9 +30,10 @@ color:white; } + - + {{! Everything else gets inserted here }} {{{body}}} diff --git a/views/home.hbs b/views/home.hbs index 0e41acf..c1b157b 100644 --- a/views/home.hbs +++ b/views/home.hbs @@ -15,7 +15,7 @@

Want to sign on as another TennisCourtsOpen.com location? Email us.

{{! Make this table dynamic later when DB supports multiple locations. }} - + }}
Here are the currently supported locations:Here are the currently supported locations:{{! Status
Temple Terrace Recreation Center, clay courts
diff --git a/views/index.hbs b/views/location.hbs similarity index 85% rename from views/index.hbs rename to views/location.hbs index 5e6cd65..ac6dddf 100644 --- a/views/index.hbs +++ b/views/location.hbs @@ -1,6 +1,6 @@ {{!< default}} -
+

TT Tennis Courts Are...