From bd447f6ea966cabb71fa05914a5e4b30e6ab8ed4 Mon Sep 17 00:00:00 2001 From: Alsotang Date: Thu, 8 May 2014 13:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20topic=20=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=9B=9E=E5=A4=8D=E6=A5=BC=E5=B1=82=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/topic.js | 2 +- views/reply/reply.html | 2 +- views/topic/index.html | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) 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) { %>