From 8ccedaa62236afebb287d4fa70c665f425a4b121 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 3 May 2016 14:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E8=AF=A6=E6=83=85=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=82=B9=E8=B5=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/news/_course_show.html.erb | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb index 3236aa6a0..ee9d63720 100644 --- a/app/views/news/_course_show.html.erb +++ b/app/views/news/_course_show.html.erb @@ -97,11 +97,19 @@
+
+
回复 + <%= @comments.count>0 ? "(#{@comments.count})" : "" %> + + <% if @news.author == User.current %> + + <% else %> + <%=render :partial=> "praise_tread/praise", :locals => {:activity=>@news, :user_activity_id=>@news.id,:type=>"activity"}%> + <% end %> + +
+
<% unless @comments.empty? %> -
-
回复(<%=@comments.count %>)
-
-
<% @comments.each_with_index do |reply,i| %>