diff --git a/app/views/mailer/send_for_user_activities.html.erb b/app/views/mailer/send_for_user_activities.html.erb
index 63b256421..98abc00f7 100644
--- a/app/views/mailer/send_for_user_activities.html.erb
+++ b/app/views/mailer/send_for_user_activities.html.erb
@@ -40,7 +40,7 @@
<% unless @course_news_comments.first.nil? %>
- <%= l(:label_course_news) %>
+ <%= l(:label_course_mail_news_reply) %>
<% @course_news_comments.each do |course_news_comment|%>
-
@@ -243,12 +243,10 @@
<%= link_to issues_journal.user, user_activities_url(issues_journal.user,:token => @token.value), :class => "wmail_name",
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
<%= l(:label_project_issue) %>
- <% if issues_journal.notes.nil? %>
- <%= link_to truncate(issues_journal.issue.subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value),
- :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
- %>
+ <% if issues_journal.notes.blank? || issues_journal.notes.nil? %>
+ <%= l(:label_isuue_mail_status) %>
<% else %>
- <%= link_to truncate(issues_journal.notes,length: 30,omission: '...'),issue_url(issues_journal.issue, :token => @token.value),
+ <%= link_to truncate(issues_journal.notes.html_safe,length: 30,omission: '...'),issue_url(issues_journal.issue, :token => @token.value),
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
%>
<% end %>
diff --git a/app/views/student_work/_student_work.html.erb b/app/views/student_work/_student_work.html.erb
index abbd134b0..cd60ef024 100644
--- a/app/views/student_work/_student_work.html.erb
+++ b/app/views/student_work/_student_work.html.erb
@@ -12,7 +12,7 @@
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
-
- <% if Time.parse(@homework.end_time.to_s) < Time.parse(student_work.created_at.to_s) %>
+ <% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(student_work.created_at.to_s).strftime("%Y-%m-%d") %>
迟交
<% else%>
<%= student_work.created_at.strftime("%m-%d").to_s%>
diff --git a/config/locales/courses/zh.yml b/config/locales/courses/zh.yml
index 0f6c1fa01..772d6bb52 100644
--- a/config/locales/courses/zh.yml
+++ b/config/locales/courses/zh.yml
@@ -16,9 +16,11 @@ zh:
label_course_name: 课程名称
label_homework: 课程作业
- label_course_news: 课程通知
+ label_course_news: 课程通知
+ label_course_mail_news_reply: 课程通知回复
label_main_teacher: 主讲教师
- label_course_term: 开课学期
+ label_course_term: 开课学期
+ label_isuue_mail_status: 更新了issue状态
label_join_course: 加入
label_exit_course: 退出
diff --git a/db/migrate/20150619060110_homework_common_time.rb b/db/migrate/20150619060110_homework_common_time.rb
index c574ad93c..f5294bc66 100644
--- a/db/migrate/20150619060110_homework_common_time.rb
+++ b/db/migrate/20150619060110_homework_common_time.rb
@@ -10,7 +10,6 @@ class HomeworkCommonTime < ActiveRecord::Migration
end
end
end
- puts i.to_s
end
end