From d33cbbb699a484687dd147cb49b01005b0e5e6b4 Mon Sep 17 00:00:00 2001 From: miss <994230062@qq.com> Date: Mon, 25 Sep 2017 16:49:35 +0800 Subject: [PATCH] =?UTF-8?q?issue=E5=88=97=E8=A1=A8=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 2 +- app/views/files/_course_list.html.erb | 18 +++++++++++++++--- app/views/layouts/base_shixun.html.erb | 4 +++- app/views/messages/edit.html.erb | 4 ++-- app/views/shixuns/_add_collaborators.html.erb | 6 +++--- .../shixuns/_statistics_student_list.html.erb | 9 ++++----- app/views/users/user_fanslist.html.erb | 2 +- app/views/users/user_watchlist.html.erb | 2 +- public/stylesheets/css/edu-common.css | 2 +- 9 files changed, 31 insertions(+), 18 deletions(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index d11285bc7..3a7072c3d 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -16,7 +16,7 @@ class ShixunsController < ApplicationController def statistics_students - @statistics = @shixun.myshixuns.order("created_at desc") + @statistics = @shixun.myshixuns.where("").order("created_at desc") @statistics_count = @statistics.count @limit = 10 @is_remote = true diff --git a/app/views/files/_course_list.html.erb b/app/views/files/_course_list.html.erb index c1836895b..67c6a458d 100644 --- a/app/views/files/_course_list.html.erb +++ b/app/views/files/_course_list.html.erb @@ -1,3 +1,10 @@ + <% if curse_attachments.count != 0 %> <% curse_attachments.each do |file| %> <% if file.is_public? || User.current.member_of_course?(course) || User.current.admin? %> @@ -8,10 +15,15 @@
编辑帖子