user_message
enter course message ,username need to be realname
This commit is contained in:
parent
b7a6bc3614
commit
19f3172966
|
@ -561,7 +561,7 @@
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
<div style="display: none" class="message_title_red system_message_style">
|
||||||
<% if ma.course.is_public? || User.current.member_of_course?(ma.course) || User.current.admin? %>
|
<% if ma.course.is_public? || User.current.member_of_course?(ma.course) || User.current.admin? %>
|
||||||
<p>您增加了新的课程成员,详情如下:</p>
|
<p>您增加了新的课程成员,详情如下:</p>
|
||||||
<p>成员:<%= User.find(ma.course_message_id) %></p>
|
<p>成员:<%= User.find(ma.course_message_id).realname ? User.find(ma.course_message_id).realname : User.find(ma.course_message_id).login %></p>
|
||||||
<p>课程名称:<%= ma.course.name %></p>
|
<p>课程名称:<%= ma.course.name %></p>
|
||||||
<p>开课学期:<%= ma.course.time.to_s + '年'+ ma.course.term %></p>
|
<p>开课学期:<%= ma.course.time.to_s + '年'+ ma.course.term %></p>
|
||||||
<p>课程ID:<%= ma.course.id %></p>
|
<p>课程ID:<%= ma.course.id %></p>
|
||||||
|
|
Loading…
Reference in New Issue