修改消息500问题
This commit is contained in:
parent
4a5dfe1109
commit
c250945422
|
@ -127,18 +127,7 @@
|
||||||
:onmouseover =>"message_titile_show($(this),event)",
|
:onmouseover =>"message_titile_show($(this),event)",
|
||||||
:onmouseout => "message_titile_hide($(this))" %></a></li>
|
:onmouseout => "message_titile_hide($(this))" %></a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
<div style="display: none" class="message_title_red system_message_style">
|
||||||
<% if User.current.members.where("course_id = ?", ma.course_message.course.id).first.roles.first.name == 'Student' %>
|
<% if User.current.allowed_to?(:as_teacher,ma.course_message) %>
|
||||||
<p><%= User.current.lastname + User.current.firstname %>同学你好!<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业:</p>
|
|
||||||
<p>课程名称:<%= ma.course_message.course.name %>
|
|
||||||
(<%= ma.course_message.course.term %>)</p>
|
|
||||||
<p>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></p>
|
|
||||||
<p>提交截止:<span style="color:Red;"><%= ma.course_message.end_time %> 24点</span></p>
|
|
||||||
<p>匿评关闭:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 24点</span></p>
|
|
||||||
<p>迟交扣分:<span style="color:Red;"><%= ma.course_message.late_penalty %>分</span></p>
|
|
||||||
<p>
|
|
||||||
请抓紧时间提交自己的作品,谢谢!
|
|
||||||
</p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
<p>
|
||||||
<%= User.current.lastname + User.current.firstname %>老师您好!
|
<%= User.current.lastname + User.current.firstname %>老师您好!
|
||||||
<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业:
|
<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业:
|
||||||
|
@ -154,6 +143,17 @@
|
||||||
<p>
|
<p>
|
||||||
您可以修改作业内容、评分规则、匿评过程等,谢谢!
|
您可以修改作业内容、评分规则、匿评过程等,谢谢!
|
||||||
</p>
|
</p>
|
||||||
|
<% else %>
|
||||||
|
<p><%= User.current.lastname + User.current.firstname %>同学你好!<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业:</p>
|
||||||
|
<p>课程名称:<%= ma.course_message.course.name %>
|
||||||
|
(<%= ma.course_message.course.term %>)</p>
|
||||||
|
<p>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></p>
|
||||||
|
<p>提交截止:<span style="color:Red;"><%= ma.course_message.end_time %> 24点</span></p>
|
||||||
|
<p>匿评关闭:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 24点</span></p>
|
||||||
|
<p>迟交扣分:<span style="color:Red;"><%= ma.course_message.late_penalty %>分</span></p>
|
||||||
|
<p>
|
||||||
|
请抓紧时间提交自己的作品,谢谢!
|
||||||
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
|
|
Loading…
Reference in New Issue