mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Adds a variable to manage user count
This commit is contained in:
@@ -5,6 +5,8 @@ var _ = require('lodash');
|
|||||||
var locals = require('../middlewares/locals');
|
var locals = require('../middlewares/locals');
|
||||||
var i18n = require('../libs/i18n');
|
var i18n = require('../libs/i18n');
|
||||||
|
|
||||||
|
var userCount = '1,000,000';
|
||||||
|
|
||||||
// -------- App --------
|
// -------- App --------
|
||||||
router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
router.get('/', i18n.getUserLanguage, locals, function(req, res) {
|
||||||
if (!req.headers['x-api-user'] && !req.headers['x-api-key'] && !(req.session && req.session.userId))
|
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) {
|
router.get('/static/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||||
res.render( 'static/' + name, {
|
res.render( 'static/' + name, {
|
||||||
env: res.locals.habitrpg,
|
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) {
|
router.get('/social/' + name, i18n.getUserLanguage, locals, function(req, res) {
|
||||||
res.render( 'social/' + name, {
|
res.render( 'social/' + name, {
|
||||||
env: res.locals.habitrpg,
|
env: res.locals.habitrpg,
|
||||||
marked: require('marked')
|
marked: require('marked'),
|
||||||
|
userCount: userCount
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ul.lead
|
ul.lead
|
||||||
li=env.t('landingCopy1')
|
li=env.t('landingCopy1')
|
||||||
li=env.t('landingCopy2')
|
li=env.t('landingCopy2')
|
||||||
li=env.t('landingCopy3', {userCount:'1,000,000'})
|
li=env.t('landingCopy3', {userCount:userCount})
|
||||||
.mobile-container
|
.mobile-container
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.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')
|
img.img-rendering-auto.center-block.img-responsive(src='https://d2afqr2xdmyzvu.cloudfront.net/front/images/intro.png')
|
||||||
// insert intro images
|
// insert intro images
|
||||||
.introcall.bg-success
|
.introcall.bg-success
|
||||||
h4= env.t('joinOthers', {userCount:'1,000,000'})
|
h4= env.t('joinOthers', {userCount:userCount})
|
||||||
small
|
small
|
||||||
button#play-btn.btn.btn-primary.btn-lg.gamifybutton(ng-click='playButtonClick()')= env.t('free')
|
button#play-btn.btn.btn-primary.btn-lg.gamifybutton(ng-click='playButtonClick()')= env.t('free')
|
||||||
.presslogos.text-center
|
.presslogos.text-center
|
||||||
@@ -592,7 +592,7 @@ html(ng-app='habitrpg', ng-controller='RootCtrl')
|
|||||||
#footercall
|
#footercall
|
||||||
.container-fluid
|
.container-fluid
|
||||||
.row
|
.row
|
||||||
h3= env.t('joinOthers', {userCount:'1,000,000'})
|
h3= env.t('joinOthers', {userCount:userCount})
|
||||||
.row
|
.row
|
||||||
.col-md-4.col-md-offset-4
|
.col-md-4.col-md-offset-4
|
||||||
button.btn.btn-primary.btn-lg.btn-block(ng-click='playButtonClick()')= env.t('free')
|
button.btn.btn-primary.btn-lg.btn-block(ng-click='playButtonClick()')= env.t('free')
|
||||||
|
|||||||
Reference in New Issue
Block a user