From 6a6dda2ec3e637d358f52b469b8e741ecf709363 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 25 Nov 2016 10:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=A4=A7=E7=BA=B2=EF=BC=9A?= =?UTF-8?q?=E5=A6=82=E5=9B=BE=E2=80=9C=E5=BD=92=E6=A1=A3=E2=80=9D=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=98=BE=E7=A4=BA=E6=8D=A2=E8=A1=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/syllabuses/_syllabus_course_list.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/syllabuses/_syllabus_course_list.html.erb b/app/views/syllabuses/_syllabus_course_list.html.erb index 1ce62a1b4..3af4eee43 100644 --- a/app/views/syllabuses/_syllabus_course_list.html.erb +++ b/app/views/syllabuses/_syllabus_course_list.html.erb @@ -36,8 +36,8 @@ <% end %>
-

- 创建老师:<%=link_to course.teacher.show_name, user_path(course.teacher), :class => 'sy_cblue' %> +

+ <% if User.current.admin? || User.current.allowed_to?(:as_teacher,course) %> <% homework_num = course.homework_commons.count %> <% else %> @@ -59,7 +59,7 @@ 学期:<%= current_time_and_term course %> 更新时间:<%= format_date(course.updated_on) %> -

+
<% if @list_type == 0 %> <% if User.current.member_of_course?(course) %>