more fixes to noscript

This commit is contained in:
Julian Lam
2013-09-03 12:21:48 -04:00
parent 3ed9e1dd51
commit 0a8c43901d
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
<ul class="posts"> <ul class="posts">
<!-- BEGIN main_posts --> <!-- BEGIN main_posts -->
<li> <li>
<a name="{main_posts.pid}"></a>
<div class="row"> <div class="row">
<div class="col-lg-2 profile"> <div class="col-lg-2 profile">
<img class="img-thumbnail" src="{main_posts.picture}" /><br /> <img class="img-thumbnail" src="{main_posts.picture}" /><br />
@@ -14,6 +15,7 @@
<!-- END main_posts --> <!-- END main_posts -->
<!-- BEGIN posts --> <!-- BEGIN posts -->
<li> <li>
<a name="{posts.pid}"></a>
<div class="row"> <div class="row">
<div class="col-lg-2 profile"> <div class="col-lg-2 profile">
<img class="img-thumbnail" src="{posts.picture}" /><br /> <img class="img-thumbnail" src="{posts.picture}" /><br />

View File

@@ -235,7 +235,8 @@ var express = require('express'),
}); });
}, },
function(topicData, next) { function(topicData, next) {
var lastMod = 0, var posts = topicData.posts.push(topicData.main_posts[0]),
lastMod = 0,
timestamp; timestamp;
for(var x=0,numPosts=topicData.posts.length;x<numPosts;x++) { for(var x=0,numPosts=topicData.posts.length;x<numPosts;x++) {