diff --git a/proxy/topic.js b/proxy/topic.js index a0c617f..ad5540a 100644 --- a/proxy/topic.js +++ b/proxy/topic.js @@ -36,7 +36,7 @@ exports.getTopicById = function (id, callback) { if (topic.last_reply) { Reply.getReplyById(topic.last_reply, proxy.done(function (last_reply) { - proxy.emit('last_reply', last_reply || null); + proxy.emit('last_reply', last_reply); })); } else { proxy.emit('last_reply', null); diff --git a/views/reply/reply.html b/views/reply/reply.html index cb9436e..07e8cd1 100644 --- a/views/reply/reply.html +++ b/views/reply/reply.html @@ -7,7 +7,7 @@
<%= reply.author.name %> - <%= reply.friendly_create_at %> + <%= indexInCollection + 1 %>楼•<%= reply.friendly_create_at %>
<% if ( typeof(current_user) !== 'undefined' && current_user.is_admin || diff --git a/views/topic/index.html b/views/topic/index.html index 5d89d73..1bb69dd 100644 --- a/views/topic/index.html +++ b/views/topic/index.html @@ -50,7 +50,9 @@
- 发布于 <%= topic.friendly_create_at %>, + 发布于 <%= topic.friendly_create_at %> + + <%= topic.visit_count %> 次浏览 <% if (topic.friendly_create_at != topic.friendly_update_at) { %>