修改了个人主页课程列表权限
This commit is contained in:
parent
811106aca0
commit
2d90215de2
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue