From 882ceb6a63847d5b78e0dc0050b01b6b8be5930c Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 17 Dec 2016 10:12:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_user_courses.html.erb | 4 ++-- app/views/layouts/base_course_community.html.erb | 2 +- app/views/layouts/new_base_user.html.erb | 12 ++++++------ app/views/projects/_no_data.html.erb | 2 +- app/views/users/_no_data.html.erb | 2 +- app/views/users/_unfinished_homework_list.html.erb | 4 ++-- app/views/users/_unfinished_poll_list.html.erb | 4 ++-- app/views/users/_unfinished_test_list.html.erb | 4 ++-- app/views/users/_unsolved_issues_list.html.erb | 8 ++++---- app/views/users/project_community.html.erb | 2 +- app/views/users/user_issues.html.erb | 2 ++ 11 files changed, 24 insertions(+), 22 deletions(-) diff --git a/app/views/layouts/_user_courses.html.erb b/app/views/layouts/_user_courses.html.erb index 1b4f38ec5..83f204bb4 100644 --- a/app/views/layouts/_user_courses.html.erb +++ b/app/views/layouts/_user_courses.html.erb @@ -8,8 +8,8 @@ <%#= link_to course.name+"("+current_time_and_term_short(course)+")", course_path(course.id,:host=>Setting.host_course), :id => "show_course_#{course.id}", :class => 'course_list_menu hidden', :target => '_blank', :title => (course.is_public? ? "公开班级:":"私有班级:")+course.name+"("+current_time_and_term(course)+")"%> diff --git a/app/views/layouts/base_course_community.html.erb b/app/views/layouts/base_course_community.html.erb index c6bcc8925..9a4a509a3 100644 --- a/app/views/layouts/base_course_community.html.erb +++ b/app/views/layouts/base_course_community.html.erb @@ -52,7 +52,7 @@ <%= link_to '全部',{:controller => "users", :action => "user_courselist", :id => @user}, :style => "color:#aaa;" %> <% courses = @user.favorite_courses.visible.where("is_delete =?", 0).select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS a").order("a desc").limit(10) %>
- <%=render :partial => 'layouts/homepage_left_course_list', :locals => {:courses => courses} %> + <%= render :partial => 'layouts/homepage_left_course_list', :locals => {:courses => courses} %>
<% if is_current_user %> diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index bbea03ba1..a65bb8436 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -161,7 +161,7 @@ <% if is_current_user %>

- <%= link_to "课程社区", user_course_community_path(User.current), :class => "fl" %> + <%= link_to "课程社区", user_course_community_path(User.current), :class => "fl" , :target => "_blank"%>

<%# if hidden_unproject_infos %>