修改课程退出的权限
This commit is contained in:
parent
9c0b68460a
commit
5c6bf7f9c8
|
@ -41,9 +41,11 @@
|
||||||
<td><%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>
|
<td><%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %></td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<div class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
<div class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
||||||
<%= @project.name %>
|
<%= @project.name %>
|
||||||
</div>
|
</div>
|
||||||
|
<% unless @course.teacher.id == User.current.id%>
|
||||||
<%= join_in_course(@project, User.current)%>
|
<%= join_in_course(@project, User.current)%>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -82,7 +84,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" style="padding-left: 8px;">课程学期:</td><td class="font_lighter_sidebar"><%= @course.term %></td>
|
<td valign="top" style="padding-left: 8px;">课程学期:</td><td class="font_lighter_sidebar"><%= @course.term %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% unless @course.teacher.user_extensions.nil?%>
|
<% unless @course.teacher.user_extensions.nil?%>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" style="padding-left: 8px;">教师单位:</td><td class="font_lighter_sidebar"><%= @course.teacher.user_extensions.occupation %></td>
|
<td valign="top" style="padding-left: 8px;">教师单位:</td><td class="font_lighter_sidebar"><%= @course.teacher.user_extensions.occupation %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue