竞赛列表的单位改成创建者

This commit is contained in:
cxt 2016-12-27 09:41:22 +08:00
parent 22a009e9d1
commit b0aedc9882
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@
<div>
<p class="fl sy_p_grey">
更新时间:<%= format_date(contest.updated_at) %> &nbsp;&nbsp;&nbsp;
<% 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>