changed the /latest route to /recent to match the text

v1.18.x
Baris Usakli 12 years ago
parent d0e5c0dcf1
commit a43c7bc90f

@ -19,7 +19,7 @@
"users[^]*following": "following",
"users[^]*followers": "followers",
"users/[^]*": "account",
"latest": "category",
"recent": "category",
"popular": "category",
"active": "category"
},

@ -47,7 +47,7 @@
<div class="nav-collapse collapse">
<ul class="nav nodebb-inline-block">
<li>
<a href="/latest">Recent <!--<span class="badge badge-inverse">3</span>--></a>
<a href="/recent">Recent <!--<span class="badge badge-inverse">3</span>--></a>
</li>
<!--<li>
<a href="/popular">Popular</a>

@ -84,7 +84,7 @@ var express = require('express'),
// Basic Routes (entirely client-side parsed, goal is to move the rest of the crap in this file into this one section)
(function() {
var routes = ['login', 'register', 'account', 'latest', 'popular', 'active', '403', '404'];
var routes = ['login', 'register', 'account', 'recent', 'popular', 'active', '403', '404'];
for (var i=0, ii=routes.length; i<ii; i++) {
(function(route) {
@ -247,7 +247,7 @@ var express = require('express'),
res.json(data);
}, req.params.id, uid);
break;
case 'latest' :
case 'recent' :
categories.getLatestTopics(uid, 0, 9, function(data) {
res.json(data);
});

Loading…
Cancel
Save