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| %>