From bf13b6160f064941ca7d6a075935b66a0a25197e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 21 Apr 2015 19:10:47 -0400 Subject: [PATCH] load database questions --- install/web.js | 14 ++++++++++++- src/views/install/index.tpl | 39 ++++++++++++++++++++++++++++--------- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/install/web.js b/install/web.js index c462c24e6a..515a4fe7b6 100644 --- a/install/web.js +++ b/install/web.js @@ -48,7 +48,19 @@ function setupRoutes() { } function install(req, res, next) { - res.render('install/index', {}); + var dbs = ['redis', 'mongo'], + databases = []; + + dbs.forEach(function(el) { + databases.push({ + name: el, + questions: require('../src/database/' + el).questions + }); + }); + + res.render('install/index', { + databases: databases + }); } function compileLess(callback) { diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl index bb3850fafe..9c86dc073f 100644 --- a/src/views/install/index.tpl +++ b/src/views/install/index.tpl @@ -44,35 +44,39 @@

-

Welcome to the NodeBB Installer!
You are just a few steps away from launching your own NodeBB forum

+

Welcome to the NodeBB Installer

+ You are just a few steps away from launching your own NodeBB forum!

-
+

+

Create an Administrator account

+
+

- +
- +
- +
- +
@@ -84,14 +88,31 @@
- - + +
-
+
+ +
+ +
+
+ + +
+
+ +
+ +
+