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})" : "" %>