From 52bc4aab81f30a57b7e9c66bc8266846f7308ff4 Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 2 Jun 2016 18:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=BA=8C=EF=BC=88=E6=9C=AA=E5=AE=8C?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/organizations_controller.rb | 2 +- .../organizations/_org_custom_right2.html.erb | 35 +++++-------------- 2 files changed, 9 insertions(+), 28 deletions(-) diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index 4021560bf..8be34a318 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -93,7 +93,7 @@ class OrganizationsController < ApplicationController end # 热门项目 if @organization.org_subfields.where(:field_type => "Comppro", :hide => 0).count > 0 - @excellent_courses = Course.where(:is_public => true, :status => true) + @excellent_projects = Course.where(:is_public => true, :status => true, :hot => true) end # 最新动态, 来自我关联的项目和课程 if @organization.org_subfields.where(:field_type => "Compact", :hide => 0).count > 0 diff --git a/app/views/organizations/_org_custom_right2.html.erb b/app/views/organizations/_org_custom_right2.html.erb index 3cef2f622..34e3682f6 100644 --- a/app/views/organizations/_org_custom_right2.html.erb +++ b/app/views/organizations/_org_custom_right2.html.erb @@ -1,32 +1,13 @@

热点项目更多>

\ No newline at end of file