在我的主页的“课程”列表里加入了“主讲教师”

This commit is contained in:
baiyu 2013-11-02 11:06:22 +08:00
parent fb54fcbe86
commit 606b2d0587
1 changed files with 4 additions and 2 deletions

View File

@ -29,8 +29,10 @@
</p></td> </p></td>
</tr> </tr>
<tr><td> <tr><td>
<% @course = Course.find_by_extra(membership.project.identifier)%>
<% unless @course.nil? %>
<span class="font-lighter" style="float: left"><%= l(:label_main_teacher) %> : <%= link_to(@course.teacher.show_name, user_path(@course.teacher)) %></span>
<% end %>
<span class="font_lighter" style="float: right"><%= l(:label_create_time) %> <%= format_time(membership.created_on) %></span> <span class="font_lighter" style="float: right"><%= l(:label_create_time) %> <%= format_time(membership.created_on) %></span>
</td></tr> </td></tr>
</table></td> </table></td>