diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 555c67d13..1f5d38e25 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -649,7 +649,7 @@ class UsersController < ApplicationController
@user_activities = UserActivity.where("container_type = 'Project' and container_id in #{user_project_ids} and act_type = 'Message'").order('created_at desc').limit(10).offset(@page * 10)
else
@user_activities = UserActivity.where("(container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids}) and act_type in #{course_types}").order('created_at desc').limit(10).offset(@page * 10)
- end
+ end
else
@user_activities = UserActivity.where("(container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids}) and act_type in #{course_types}").order('created_at desc').limit(10).offset(@page * 10)
end
diff --git a/app/views/mailer/send_for_user_activities.html.erb b/app/views/mailer/send_for_user_activities.html.erb
index 0233f7a42..6fc742c99 100644
--- a/app/views/mailer/send_for_user_activities.html.erb
+++ b/app/views/mailer/send_for_user_activities.html.erb
@@ -187,7 +187,7 @@
<% if @issues.first || @project_messages.first || @issues_journals.first || @wiki_contents.first || @project_news.first || @project_news_comments.first || @project_journal_messages.first ||
- @project_news_comments.first %>
+ @project_attachments.first %>
<%= l(:label_project_overview_new)%>
<% unless @issues.first.nil? || @issues_journals.first.nil? %>
diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb
index 0f0a145e3..ff7e43105 100644
--- a/app/views/users/_course_message.html.erb
+++ b/app/views/users/_course_message.html.erb
@@ -106,7 +106,7 @@
) if reply.course_destroyable_by?(User.current) %>
- <%= reply.content.html_safe %>
+ <%= reply.content.html_safe %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb
index aaa8fa672..603901ae4 100644
--- a/app/views/users/_course_news.html.erb
+++ b/app/views/users/_course_news.html.erb
@@ -38,7 +38,7 @@
<% count=activity.comments_count %>
回复(<%= count %>)
-
<%= format_date(activity.updated_on) %>
+
<%#= format_date(activity.updated_on) %>
<%if count>2 %>
<% end %>
@@ -83,7 +83,7 @@
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
- <%= comment.comments.html_safe %>
+ <%= comment.comments.html_safe %>
diff --git a/app/views/users/_course_poll.html.erb b/app/views/users/_course_poll.html.erb
index bc0fee3a8..f0a2a8aba 100644
--- a/app/views/users/_course_poll.html.erb
+++ b/app/views/users/_course_poll.html.erb
@@ -28,7 +28,7 @@
发布时间:<%= format_date(activity.published_at) %>
- 问卷描述:<%=activity.polls_description.to_s%>
+ 问卷描述:<%=activity.polls_description.html_safe.to_s%>
- <%= reply.content.html_safe %>
+ <%= reply.content.html_safe %>
diff --git a/app/views/users/_resource_share_for_project_popup.html.erb b/app/views/users/_resource_share_for_project_popup.html.erb
index 4d377154e..e5d1732e4 100644
--- a/app/views/users/_resource_share_for_project_popup.html.erb
+++ b/app/views/users/_resource_share_for_project_popup.html.erb
@@ -1,6 +1,6 @@
-
+
将资源发送至
@@ -44,7 +44,7 @@
<%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %>
-
+
<% end %>
diff --git a/app/views/users/_resource_share_popup.html.erb b/app/views/users/_resource_share_popup.html.erb
index 376d674cd..2fc515b4a 100644
--- a/app/views/users/_resource_share_popup.html.erb
+++ b/app/views/users/_resource_share_popup.html.erb
@@ -1,6 +1,6 @@
-
+
将资源发送至
@@ -44,7 +44,7 @@
<%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %>
-
+
<% end %>
diff --git a/app/views/users/_user_activities.html.erb b/app/views/users/_user_activities.html.erb
index 1cfeb7ed8..b43d0d54e 100644
--- a/app/views/users/_user_activities.html.erb
+++ b/app/views/users/_user_activities.html.erb
@@ -3,16 +3,16 @@