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