From e2848f4dec87c73a491e6794dfe2da46d854353d Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 2 Jun 2016 21:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=A0=8F=E7=9B=AE=E6=97=B6?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/org_subfields_controller.rb | 2 ++ app/views/organizations/_org_custom_header.html.erb | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/controllers/org_subfields_controller.rb b/app/controllers/org_subfields_controller.rb index 496c3aa92..78049e545 100644 --- a/app/controllers/org_subfields_controller.rb +++ b/app/controllers/org_subfields_controller.rb @@ -25,6 +25,8 @@ class OrgSubfieldsController < ApplicationController # status类型说明,详见SubField def update_status_by_type subfield, type case type + when "Resource" + subfield.update_attribute(:status, 6) when "Comptec" subfield.update_attribute(:status, 6) when "Compstu" diff --git a/app/views/organizations/_org_custom_header.html.erb b/app/views/organizations/_org_custom_header.html.erb index fc556255a..6368fef90 100644 --- a/app/views/organizations/_org_custom_header.html.erb +++ b/app/views/organizations/_org_custom_header.html.erb @@ -38,14 +38,9 @@ <%= link_to "首页", organization_path(@organization), :class => "por_index_act" %> <% when 'course' %> -
  • - 课程动态 -
  • <% when 'project' %> -
  • - 项目动态 -
  • <% end %> + <% else %> <% if field.field_type == "Post" && field.hide == 0 %>
  • <%= field.name %>