mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
Adds a variable to manage user count
This commit is contained in:
parent
5931ddf2ba
commit
a716ce3fa7
3 changed files with 9 additions and 5 deletions
|
|
@ -5,6 +5,8 @@ var _ = require('lodash');
|
|||
var locals = require('../middlewares/locals');
|
||||
var i18n = require('../libs/i18n');
|
||||
|
||||
var userCount = '1,000,000';
|
||||
|
||||
// -------- App --------
|
||||
router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
||||
if (!req.headers['x-api-user'] && !req.headers['x-api-key'] && !(req.session && req.session.userId))
|
||||
|
|
@ -24,7 +26,8 @@ _.each(pages, function(name){
|
|||
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||
res.render( 'static/' + name, {
|
||||
env: res.locals.habitrpg,
|
||||
marked: require('marked')
|
||||
marked: require('marked'),
|
||||
userCount: userCount
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -37,7 +40,8 @@ _.each(shareables, function(name){
|
|||
router.get('/social/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||
res.render( 'social/' + name, {
|
||||
env: res.locals.habitrpg,
|
||||
marked: require('marked')
|
||||
marked: require('marked'),
|
||||
userCount: userCount
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
ul.lead
|
||||
li=env.t('landingCopy1')
|
||||
li=env.t('landingCopy2')
|
||||
li=env.t('landingCopy3', {userCount:'1,000,000'})
|
||||
li=env.t('landingCopy3', {userCount:userCount})
|
||||
.mobile-container
|
||||
.row
|
||||
.col-md-6
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
|
|||
img.img-rendering-auto.center-block.img-responsive(src='https://d2afqr2xdmyzvu.cloudfront.net/front/images/intro.png')
|
||||
// insert intro images
|
||||
.introcall.bg-success
|
||||
h4= env.t('joinOthers', {userCount:'1,000,000'})
|
||||
h4= env.t('joinOthers', {userCount:userCount})
|
||||
small
|
||||
button#play-btn.btn.btn-primary.btn-lg.gamifybutton(ng-click='playButtonClick()')= env.t('free')
|
||||
.presslogos.text-center
|
||||
|
|
@ -592,7 +592,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
|
|||
#footercall
|
||||
.container-fluid
|
||||
.row
|
||||
h3= env.t('joinOthers', {userCount:'1,000,000'})
|
||||
h3= env.t('joinOthers', {userCount:userCount})
|
||||
.row
|
||||
.col-md-4.col-md-offset-4
|
||||
button.btn.btn-primary.btn-lg.btn-block(ng-click='playButtonClick()')= env.t('free')
|
||||
|
|
|
|||
Loading…
Reference in a new issue