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 %>