From d308242d2d5d4603bab2761af43486cc172443ac Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 8 May 2013 11:08:56 -0400 Subject: [PATCH] decimal places for rep and post count --- public/templates/account.tpl | 20 +++++++++++++++++--- public/templates/users.tpl | 26 +++++++++++++++++++++++--- src/webserver.js | 3 ++- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/public/templates/account.tpl b/public/templates/account.tpl index e371c02d3a..1fad9dd15a 100644 --- a/public/templates/account.tpl +++ b/public/templates/account.tpl @@ -28,11 +28,11 @@
reputation - {user.reputation} + {user.reputation}
posts - {user.postcount} + {user.postcount} @@ -47,6 +47,20 @@ \ No newline at end of file diff --git a/public/templates/users.tpl b/public/templates/users.tpl index e782b5a8d9..826c1be78e 100644 --- a/public/templates/users.tpl +++ b/public/templates/users.tpl @@ -11,15 +11,35 @@ {users.username}
- {users.reputation} + {users.reputation}
- {users.postcount} + {users.postcount}
- \ No newline at end of file + + + \ No newline at end of file diff --git a/src/webserver.js b/src/webserver.js index 23e0ec343e..a006e2ffd3 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -436,7 +436,8 @@ passport.deserializeUser(function(uid, done) { user.getUserData(uid, function(data) { if(data) { - res.send(templates['header'] + '' + templates['footer']); + //res.send(templates['header'] + '' + templates['footer']); + res.send(templates['header'] + create_route('users/'+data.username,'users') + templates['footer']); } else { res.send("User doesn't exist! /users/"+req.params.username);