show correct version on admin/index

v1.18.x
Baris Usakli 12 years ago
parent 03d3f59804
commit ca81732661

@ -8,7 +8,7 @@
<a target="_blank" href="http://www.nodebb.org" class="btn btn-large"><i class="icon-github-alt"></i> Get Themes</a>
<a target="_blank" href="http://www.nodebb.org" class="btn btn-large"><i class="icon-twitter"></i> dcplabs</a>
</p>
<p><small>You are running <strong>NodeBB v0.0.1</strong>. This is where we will check to make sure your <strong>NodeBB</strong> is latest, etc.</small></p>
<p><small>You are running <strong>NodeBB v{version}</strong>. This is where we will check to make sure your <strong>NodeBB</strong> is latest, etc.</small></p>
</div>

@ -1,7 +1,8 @@
var user = require('./../user.js'),
topics = require('./../topics.js'),
RDB = require('./../redis.js')
RDB = require('./../redis.js'),
pkg = require('./../../package.json'),
categories = require('./../categories.js');
(function(Admin) {
@ -57,6 +58,9 @@ var user = require('./../user.js'),
function api_method(req, res) {
switch(req.params.method) {
case 'index':
res.json({version:pkg.version});
break;
case 'users' :
if (req.params.tab == 'search') {
res.json({search_display: 'block', users: []});

Loading…
Cancel
Save