diff --git a/app/controllers/ecs_controller.rb b/app/controllers/ecs_controller.rb index f31bea88..12b6b5d9 100644 --- a/app/controllers/ecs_controller.rb +++ b/app/controllers/ecs_controller.rb @@ -60,7 +60,7 @@ class EcsController < ApplicationController def get_navigation_url ec_user = EcSchoolUser.where(:user_id => User.current.id).first ec_url = "#{department_ecs_path(:school_id => ec_user.school_id)}" if ec_user - render :json => {ec_url: ec_url} + render :json => {ec_url: ec_url, project_packages_url: "/crowdsourcing" } end diff --git a/app/helpers/libraries_helper.rb b/app/helpers/libraries_helper.rb index 14c6ce37..844d6124 100644 --- a/app/helpers/libraries_helper.rb +++ b/app/helpers/libraries_helper.rb @@ -11,7 +11,7 @@ module LibrariesHelper def library_tag_class(tag) case tag.name - when '优秀案例' then 'edu-activity-red' + when '获奖案例' then 'edu-activity-red' when '入库案例' then 'edu-activity-blue' end end diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb index f88931d3..3998a9a5 100644 --- a/app/views/layouts/_logined_header.html.erb +++ b/app/views/layouts/_logined_header.html.erb @@ -23,6 +23,7 @@
  • "><%= link_to "教学案例", libraries_path %>
  • +
  • "><%= link_to "众包", project_packages_path %>
  • "><%= link_to "交流问答", forums_path %>
  • <% if User.current.ec_school.present? %>
  • " id="ec_banner"> diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb index f6d5150a..8263b5cd 100644 --- a/app/views/layouts/_unlogin_header.html.erb +++ b/app/views/layouts/_unlogin_header.html.erb @@ -24,6 +24,7 @@
  • "><%= link_to "教学案例", libraries_path %>
  • +
  • "><%= link_to "众包", project_packages_path %>
  • "><%= link_to "交流问答", forums_path %>