diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb index 42475fde1..7edc19681 100644 --- a/app/views/users/_course_news.html.erb +++ b/app/views/users/_course_news.html.erb @@ -18,29 +18,26 @@
发布时间:<%= format_date(activity.created_on) %>
-
通知描述:<%= activity.description.html_safe %>
- -
- +
+ 通知描述: + <%= activity.description.html_safe %>
- <% count=activity.comments_count %> -
回复(<%= count %>)
+ <% count=activity.comments.count %> +
+ 回复(<%= count %>) +
<%#= format_date(activity.updated_on) %>
<%if count>2 %> - + <% end %>
@@ -59,12 +56,12 @@
<% replies_all_i = 0 %> - <% unless activity.comments.empty? %> + <% if count > 0 %>