修改课程退出的权限

This commit is contained in:
huangjingquan 2013-09-30 10:30:43 +08:00
parent 9c0b68460a
commit 5c6bf7f9c8
1 changed files with 4 additions and 2 deletions

View File

@ -41,9 +41,11 @@
<td><%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>
<td align="center">
<div class="info_font" style=" word-wrap: break-word; word-break: break-all">
<%= @project.name %>
<%= @project.name %>
</div>
<% unless @course.teacher.id == User.current.id%>
<%= join_in_course(@project, User.current)%>
<% end %>
</td>
</tr>
</table>
@ -82,7 +84,7 @@
<tr>
<td valign="top" style="padding-left: 8px;">课程学期:</td><td class="font_lighter_sidebar"><%= @course.term %></td>
</tr>
<% unless @course.teacher.user_extensions.nil?%>
<% unless @course.teacher.user_extensions.nil?%>
<tr>
<td valign="top" style="padding-left: 8px;">教师单位:</td><td class="font_lighter_sidebar"><%= @course.teacher.user_extensions.occupation %></td>
</tr>