Started editing and adding real content.
This commit is contained in:
parent
ba947ebaa0
commit
5e002b3244
2 changed files with 13 additions and 7 deletions
|
@ -53,14 +53,19 @@ app.use(express.static(__dirname + '/public'));
|
|||
|
||||
app.get('/', function (req, res) {
|
||||
var player_number = 0;
|
||||
var stats_number = 0;
|
||||
database.get("SELECT COUNT(*) FROM players", function (err, row) {
|
||||
player_number = row;
|
||||
});
|
||||
database.get("SELECT COUNT(*) FROM stats", function (err, row) {
|
||||
stats_number = row;
|
||||
});
|
||||
|
||||
res.render('index',
|
||||
{
|
||||
title: 'My Game',
|
||||
player_num: player_number
|
||||
player_num: player_number,
|
||||
stats_num: stats_number
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -4,12 +4,7 @@ block content
|
|||
p
|
||||
| Registered players: #{player_num}
|
||||
p
|
||||
| Donec congue lacinia dui, a porttitor
|
||||
| lectus condimentum laoreet. Nunc eu
|
||||
| ullamcorper orci. Quisque eget odio ac
|
||||
| lectus vestibulum faucibus eget in metus.
|
||||
| In pellentesque faucibus vestibulum. Nulla
|
||||
| at nulla justo, eget luctus tortor.
|
||||
| Stats registered: #{stats_num}
|
||||
block sidebar
|
||||
.widget
|
||||
h1 Access
|
||||
|
@ -17,6 +12,12 @@ block sidebar
|
|||
ul
|
||||
li
|
||||
a(href='/') Main
|
||||
ul
|
||||
li
|
||||
a(href='/register') Register New Player
|
||||
ul
|
||||
li
|
||||
a(href='/remove') Remove Player
|
||||
ul
|
||||
li
|
||||
a(href='/config') Configuration
|
||||
|
|
Loading…
Reference in a new issue