From 698dfdab4a15158ff2182562885f1b11a387f40d Mon Sep 17 00:00:00 2001 From: cxt Date: Wed, 27 Apr 2016 16:25:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E7=82=B9=E8=B5=9E=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/praise_tread/_praise.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/praise_tread/_praise.html.erb b/app/views/praise_tread/_praise.html.erb index a1a34636f..d8a277592 100644 --- a/app/views/praise_tread/_praise.html.erb +++ b/app/views/praise_tread/_praise.html.erb @@ -1,11 +1,11 @@ <% if PraiseTread.where("praise_tread_object_id=? and praise_tread_object_type=? and user_id=?",activity.id,activity.class.to_s,User.current.id).empty? %> - + <% num = get_praise_num(activity) %> <%= num > 0 ? "(#{num})" : "" %> <% else %> - + 已赞 <% num = get_praise_num(activity) %> <%= num > 0 ? "(#{num})" : "" %>