parent
1fe8c60a32
commit
5ca80d9a4c
|
@ -127,11 +127,38 @@
|
||||||
: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">
|
||||||
<p><strong>课程:</strong><%= ma.course_message.course.name %>(<%= ma.course_message.course.term %>)</p>
|
<% if User.current.members.where("course_id = ?", ma.course_message.course.id).first.roles.first.name == 'Student' %>
|
||||||
<p><strong>标题:</strong><%= ma.course_message.name %></p>
|
<p>您好!<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业,详情如下:</p>
|
||||||
|
<p><strong>课程:</strong><%= ma.course_message.course.name %>
|
||||||
|
(<%= ma.course_message.course.term %>)</p>
|
||||||
|
<p><strong>作业标题:</strong><%= ma.course_message.name %></p>
|
||||||
<% unless ma.course_message.description.blank? %>
|
<% unless ma.course_message.description.blank? %>
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
<div class="fl"><strong>作业内容:</strong></div>
|
||||||
<div class="ml36"><%= ma.course_message.description.html_safe %></div>
|
<div class="ml60"><%= ma.course_message.description.html_safe %></div>
|
||||||
|
<% end %>
|
||||||
|
<p><strong>作业提交截止日期:</strong><%= ma.course_message.end_time %></p>
|
||||||
|
<p><strong>匿评自动关闭日期:</strong><%= ma.course_message.homework_detail_manual.evaluation_end %></p>
|
||||||
|
<p><strong>迟交扣分:</strong><%= ma.course_message.late_penalty %>分</p>
|
||||||
|
<p>
|
||||||
|
请同学们抓紧时间提交自己的作品,谢谢!
|
||||||
|
</p>
|
||||||
|
<% else %>
|
||||||
|
<p>您好!<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业,详情如下:</p>
|
||||||
|
<p><strong>课程:</strong><%= ma.course_message.course.name %>
|
||||||
|
(<%= ma.course_message.course.term %>)</p>
|
||||||
|
<p><strong>作业标题:</strong><%= ma.course_message.name %></p>
|
||||||
|
<% unless ma.course_message.description.blank? %>
|
||||||
|
<div class="fl"><strong>作业内容:</strong></div>
|
||||||
|
<div class="ml60"><%= ma.course_message.description.html_safe %></div>
|
||||||
|
<% end %>
|
||||||
|
<p><strong>作业提交截止日期:</strong><%= ma.course_message.end_time %></p>
|
||||||
|
<p><strong>匿评自动开始日期:</strong><%= ma.course_message.homework_detail_manual.evaluation_start %></p>
|
||||||
|
<p><strong>匿评自动关闭日期:</strong><%= ma.course_message.homework_detail_manual.evaluation_end %></p>
|
||||||
|
<p><strong>迟交扣分:</strong><%= ma.course_message.late_penalty %>分</p>
|
||||||
|
<p><strong>缺评扣分:</strong><%= ma.course_message.homework_detail_manual.absence_penalty %>分</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