修复课程-课程作业:回复匿评相关问题 #1566

This commit is contained in:
sw 2014-11-24 16:51:27 +08:00
parent 88764f1a4b
commit 175ac86217
1 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,9 @@
<% id = 'project_respond_form_'+ reply.id.to_s %>
<%= link_to reply.user.name, user_path(reply.user) %>
回复
<% if show_name %>
<%= link_to reply.at_user.name,user_path(reply.at_user) %>
<% parent_jour = JournalsForMessage.find reply.m_reply_id %>
<% if show_name && parent_jour %>
<%= link_to parent_jour.user.name,user_path(parent_jour.user) %>
<% else %>
<%= l(:label_anonymous) %>
<% end %>