From 5c6bf7f9c8f7019b1ba0fc06b139e01dc7dec1c3 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Mon, 30 Sep 2013 10:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_courses.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 33f0a6534..fd4cdd413 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -41,9 +41,11 @@ <%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %>
- <%= @project.name %> + <%= @project.name %>
+ <% unless @course.teacher.id == User.current.id%> <%= join_in_course(@project, User.current)%> + <% end %> @@ -82,7 +84,7 @@ 课程学期:<%= @course.term %> - <% unless @course.teacher.user_extensions.nil?%> + <% unless @course.teacher.user_extensions.nil?%> 教师单位:<%= @course.teacher.user_extensions.occupation %>