竞赛列表的单位改成创建者
This commit is contained in:
parent
22a009e9d1
commit
b0aedc9882
|
@ -11,8 +11,7 @@
|
|||
<div>
|
||||
<p class="fl sy_p_grey">
|
||||
更新时间:<%= format_date(contest.updated_at) %>
|
||||
<% contestUser = User.where("id=?", contest.user_id).first %>
|
||||
单位:<%= contestUser.user_extensions.school_id.blank? ? "无" : contestUser.user_extensions.school.name %>
|
||||
创建者:<%= contest.user.show_name %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
|
|
Loading…
Reference in New Issue