修改了个人主页课程列表权限

This commit is contained in:
huangjingquan 2013-11-13 11:03:51 +08:00
parent 811106aca0
commit 2d90215de2
1 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,9 @@
<!-- added by bai -->
<% @course = Course.find_by_extra(membership.project.identifier)%>
<% if @course.nil?&&@course.teacher.nil?&&@course.teacher.show_name.nil? %>
<span class="font-lighter" style="float: left"><%= l(:label_main_teacher) %> : <%= link_to(@course.teacher.show_name, user_path(@course.teacher)) %></span>
<span style="float: right; padding-left: 8px" ><%= l(:label_course_term) %> : <%= @course.time %><%= @course.term %></span>
<% unless (@course.nil? || @course.teacher.nil? || @course.teacher.show_name.nil?) %>
<span class="font-lighter" style="float: left"><%= l(:label_main_teacher) %> : <%= link_to(@course.teacher.show_name, user_path(@course.teacher)) %></span>
<span style="float: right; padding-left: 8px" ><%= l(:label_course_term) %> : <%= @course.time %><%= @course.term %></span>
<!-- <span class="font_lighter" style="float: right"><%= l(:label_create_time) %> <%= format_time(membership.created_on) %></span> -->
<% end %>
</td></tr>