From 21b9405f0604813bc662b914cce9b52c1b1cc688 Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Fri, 5 Jun 2015 14:58:42 -0400 Subject: [PATCH] Update links for new api model in views for stories. --- server/boot/story.js | 3 ++- server/views/stories/hot-stories.jade | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/boot/story.js b/server/boot/story.js index 915463ffc8..9f8a034724 100755 --- a/server/boot/story.js +++ b/server/boot/story.js @@ -2,7 +2,7 @@ var nodemailer = require('nodemailer'), sanitizeHtml = require('sanitize-html'), moment = require('moment'), mongodb = require('mongodb'), - // debug = require('debug')('freecc:cntr:story'), + debug = require('debug')('freecc:cntr:story'), utils = require('../utils'), MongoClient = mongodb.MongoClient, secrets = require('../../config/secrets'); @@ -55,6 +55,7 @@ module.exports = function(app) { if (err) { return next(err); } + debug(stories); var foundationDate = 1413298800000; var sliceVal = stories.length >= 100 ? 100 : stories.length; diff --git a/server/views/stories/hot-stories.jade b/server/views/stories/hot-stories.jade index 73ef1fde8e..425588dd05 100644 --- a/server/views/stories/hot-stories.jade +++ b/server/views/stories/hot-stories.jade @@ -38,7 +38,7 @@ " by @" + data[i].author.username + " " + "" + "
" + - "
discuss" + + "
discuss" + "
" + "" + "" + "
" + - "discuss · " + + "discuss · " + rank + (rank > 1 ? " points" : " point") + " · posted " + moment(data[i].timePosted).fromNow() + " by @" + data[i].author.username + " " +