From bbf4478fc0402d22d1f59aa29ce960b052a28a71 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 2 Sep 2015 11:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=80=9A=E7=9F=A5=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D=E5=90=8E=E4=B8=8D=E8=83=BD=E5=8F=8A=E6=97=B6=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_course_news.html.erb | 33 ++++++++++++--------------- 1 file changed, 15 insertions(+), 18 deletions(-) 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 %>