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[^]*following": "following",
"users[^]*followers": "followers", "users[^]*followers": "followers",
"users/[^]*": "account", "users/[^]*": "account",
"latest": "category", "recent": "category",
"popular": "category", "popular": "category",
"active": "category" "active": "category"
}, },

@ -47,7 +47,7 @@
<div class="nav-collapse collapse"> <div class="nav-collapse collapse">
<ul class="nav nodebb-inline-block"> <ul class="nav nodebb-inline-block">
<li> <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>
<!--<li> <!--<li>
<a href="/popular">Popular</a> <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) // Basic Routes (entirely client-side parsed, goal is to move the rest of the crap in this file into this one section)
(function() { (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++) { for (var i=0, ii=routes.length; i<ii; i++) {
(function(route) { (function(route) {
@ -247,7 +247,7 @@ var express = require('express'),
res.json(data); res.json(data);
}, req.params.id, uid); }, req.params.id, uid);
break; break;
case 'latest' : case 'recent' :
categories.getLatestTopics(uid, 0, 9, function(data) { categories.getLatestTopics(uid, 0, 9, function(data) {
res.json(data); res.json(data);
}); });

Loading…
Cancel
Save