From 5f689090b84e3f3df67da3aba99460726d1daf6d Mon Sep 17 00:00:00 2001
From: ouyangxuhua
Date: Thu, 15 Oct 2015 10:59:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BD=9C=E4=B8=9A=E6=B6=88?=
=?UTF-8?q?=E6=81=AF=E7=9A=84=E5=86=85=E5=AE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/_user_message_course.html.erb | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/app/views/users/_user_message_course.html.erb b/app/views/users/_user_message_course.html.erb
index 9c426f495..d4b61e966 100644
--- a/app/views/users/_user_message_course.html.erb
+++ b/app/views/users/_user_message_course.html.erb
@@ -144,9 +144,13 @@
课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.term %>)
作业标题:<%= ma.course_message.name %>
+ 缺评扣分:<%= ma.course_message.homework_detail_manual.absence_penalty %>分
- 截止日期:<%= ma.course_message.homework_detail_manual.evaluation_end %> 24点
+ 匿评截止:<%= ma.course_message.homework_detail_manual.evaluation_end %> 24点
+ <% unless User.current.allowed_to?(:as_teacher, ma.course_message.course)%>
+ 请您尽早完成匿评!如果您在规定时间内未完成匿评,一次将被扣<%= ma.course_message.homework_detail_manual.absence_penalty %>分。
+ <% end%>
<%= time_tag(ma.created_at).html_safe %>
@@ -193,12 +197,15 @@
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher, ma.course_message.course) ? '老师':'同学'%>您好!
- <%= User.current.eql?(ma.course_message.user) ?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname + "老师") %>启动作业匿评失败,
- 失败原因:提交作品的人数低于2人
+ <%= User.current.eql?(ma.course_message.user) ?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname + "老师") %>启动作业匿评失败!
+
失败原因:提交作品的人数低于2人
作业详情如下:
课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.term %>)
作业标题:<%= ma.course_message.name %>
+
+ 提交截止:<%= ma.course_message.end_time%> 24点
+
<%= time_tag(ma.created_at).html_safe %>