From 13c362b08dfedfc0375403472ece532c89a9c37f Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 4 Nov 2014 16:19:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BD=9C=E4=B8=9A=E6=8E=92=E5=BA=8F=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=98=BE=E7=A4=BA=E9=A1=BA=E5=BA=8F=202.=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=AF=BE=E7=A8=8B->=E9=85=8D=E7=BD=AE=20=20=20?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=AF=BE=E7=A8=8B=20->=20=E5=85=B3=E9=97=AD?= =?UTF-8?q?=20=20=E5=8A=A0=E5=85=A5=E8=AF=BE=E7=A8=8B->=E5=8A=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/watchers_helper.rb | 2 +- .../homework_attach/_homeworks_list.html.erb | 15 ++++++++------- app/views/layouts/base_courses.html.erb | 2 +- config/locales/zh.yml | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index 166dfd0ec..298331c69 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -99,7 +99,7 @@ module WatchersHelper # 主讲教师不允许退出课程 return '' if user.id == course.tea_id || course.is_public == 0 joined = user.member_of_course?(course) - text = joined ? l(:label_exit_course) : l(:label_join_course) + text = joined ? l(:label_exit_course) : l(:label_new_join) url_t = join_path(:object_id => course.id) url_f = try_join_path(:object_id => course.id) method = joined ? 'delete' : 'post' diff --git a/app/views/homework_attach/_homeworks_list.html.erb b/app/views/homework_attach/_homeworks_list.html.erb index e26c73195..b67e91d84 100644 --- a/app/views/homework_attach/_homeworks_list.html.erb +++ b/app/views/homework_attach/_homeworks_list.html.erb @@ -9,14 +9,15 @@ ( <%= homework_count%> ) - + + 按 - <%= link_to l(:label_teacher_score), sort_homework_path(@bid, 't_socre', @direction), {:remote => true}%> - / - <%= link_to l(:label_anonymous_comments), sort_homework_path(@bid, 's_socre', @direction), {:remote => true}%> - / - <%= link_to l(:label_time), sort_homework_path(@bid, 'time', @direction), {:remote => true}%> - <%= l(:label_sort) %> + <%= link_to l(:label_anonymous_comments), sort_homework_path(@bid, 's_socre', @direction), {:remote => true}%> + / + <%= link_to l(:label_teacher_score), sort_homework_path(@bid, 't_socre', @direction), {:remote => true}%> + / + <%= link_to l(:label_time), sort_homework_path(@bid, 'time', @direction), {:remote => true}%> + <%= l(:label_sort) %> <% end %> diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 929c06846..bb1647a96 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -88,7 +88,7 @@