From 7633761bbed8b1a43dd30e5d4228263408e520e6 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 1 Jul 2016 13:54:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=A4=A7=E7=BA=B2?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_syllabus_list.html.erb | 41 +++++++++++--------- app/views/users/user_newfeedback.html.erb | 2 +- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/app/views/users/_user_syllabus_list.html.erb b/app/views/users/_user_syllabus_list.html.erb index 153e11592..a9854566e 100644 --- a/app/views/users/_user_syllabus_list.html.erb +++ b/app/views/users/_user_syllabus_list.html.erb @@ -17,9 +17,9 @@
-
<% if @syllabus.any? %> <% @syllabus.each_with_index do |syllabus, index|%> +
<% courses = @courses.where("syllabus_id = #{syllabus.id}").select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS time").order("time desc") %>
@@ -68,6 +68,7 @@ <%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr', :title => '管理课程' %> +
<% end %>
    @@ -78,7 +79,6 @@ <% else %>

    <%= l(:label_no_data) %>

    <% end %> -
\ No newline at end of file diff --git a/app/views/users/user_newfeedback.html.erb b/app/views/users/user_newfeedback.html.erb index 24f625e03..ddf686b6a 100644 --- a/app/views/users/user_newfeedback.html.erb +++ b/app/views/users/user_newfeedback.html.erb @@ -19,7 +19,7 @@ <%= form_for('new_form',:url => leave_user_message_path(@user.id), :html =>{:id => "user_feedback_new"}, :method => "post") do |f|%> <%=render :partial => "jour_form", :locals => {:f => f} %> - 留言 + 留言 私信 <% end %>
From afe16cc99c2ae25f1d40d05ab72dcd69332f7ae1 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 1 Jul 2016 14:13:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=A4=A7=E7=BA=B2?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84js=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_syllabus_list.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/_user_syllabus_list.html.erb b/app/views/users/_user_syllabus_list.html.erb index a9854566e..3cc7bf61c 100644 --- a/app/views/users/_user_syllabus_list.html.erb +++ b/app/views/users/_user_syllabus_list.html.erb @@ -67,7 +67,7 @@
- <%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr', :title => '管理课程' %> + <%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr',:target =>'_blank', :title => '查看课程' %> <% end %>
@@ -89,7 +89,7 @@ if (rightHeight < leftHeight) { var diffHeight = leftHeight - rightHeight; var tmpHeight = $(".syllabus_box").height() + diffHeight; - $(".syllabus_box").css("height", tmpHeight); + $(".syllabus_box").css("minHeight", tmpHeight); } $(".syllabus_courses_list").each(function(){