diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb
index c9d41c0a..729a9564 100644
--- a/app/controllers/welcome_controller.rb
+++ b/app/controllers/welcome_controller.rb
@@ -218,7 +218,7 @@ class WelcomeController < ApplicationController
@tea_users = User.where(homepage_teacher: 1).includes(:user_extensions).limit(10).order("experience desc")
@stu_users = User.includes(:user_extensions).where(user_extensions: {identity: 1}).limit(10).order("experience desc")
- render :layout => 'educoder'
+ render :layout => 'base_local'
end
# 自动导入用户
diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index 0cfd2916..9068a95b 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -6,25 +6,8 @@
"><%= link_to "翻转课堂", courses_path %>
"><%= link_to "开发社区", shixuns_path %>
-
- <% careers = Career.published.order("created_at asc") %>
- <% if careers.present? %>
-
- <% end %>
"><%= link_to "竞赛", competitions_path %>
"><%= link_to "问答", forums_path %>
- <% if User.current.ec_school.present? %>
- " id="ec_banner">
- <%= link_to "认证", department_ecs_path(:school_id => User.current.ec_school) %>
-
- <% end %>
-
@@ -79,28 +64,12 @@
<%= link_to '新建项目', new_project_path() %>
- - <%= link_to "加入课堂", join_private_courses_courses_path, :remote => true %>
- - <%= link_to "加入项目", applied_join_project_path, :remote => true %>
+ - <%= link_to "加入课堂", join_private_courses_courses_path, :remote => true %>
+ - <%= link_to "加入项目", applied_join_project_path, :remote => true %>
-
-
@@ -126,11 +95,11 @@
<% notice = SystemUpdateNotice.last %>
<% if @noticed_update || ((User.current.certification == 1 || params[:controller] != "welcome") && notice.present? && notice.end_time > Time.now && notice.start_time >= (Time.now - 21600) && User.current.user_system_notices.where(:notice_type => notice.notice_type).count == 0) %>
- var htmlvalue = "<%= escape_javascript(render :partial => 'account/user_update_notice', :locals => {:notice => notice})%>";
- pop_box_new(htmlvalue, 500, 380);
- <% UserSystemNotice.create(:user_id => User.current.id, :notice_type => notice.notice_type) %>
+ var htmlvalue = "<%= escape_javascript(render :partial => 'account/user_update_notice', :locals => {:notice => notice})%>";
+ pop_box_new(htmlvalue, 500, 380);
+ <% UserSystemNotice.create(:user_id => User.current.id, :notice_type => notice.notice_type) %>
<%# elsif notice.present? && notice.end_time < Time.now %>
- <%# notice.destroy %>
+ <%# notice.destroy %>
<% end %>
});
diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb
index d970fffc..72dd2731 100644
--- a/app/views/layouts/_unlogin_header.html.erb
+++ b/app/views/layouts/_unlogin_header.html.erb
@@ -8,17 +8,6 @@
"><%= link_to "开发社区", shixuns_path %>
- <% careers = Career.published.order("created_at asc") %>
- <% if careers.present? %>
-
- <% end %>
"><%= link_to "竞赛", competitions_path %>
"><%= link_to "问答", forums_path %>
diff --git a/app/views/layouts/base_local.html.erb b/app/views/layouts/base_local.html.erb
new file mode 100644
index 00000000..5ce69147
--- /dev/null
+++ b/app/views/layouts/base_local.html.erb
@@ -0,0 +1,31 @@
+
+
+
+
+ <%= h html_title %>
+
+
+ <%= csrf_meta_tag %>
+ <%= favicon %>
+ <%= javascript_edu_index_heads %>
+ <%= stylesheet_link_tag 'educoder/edu-main', 'educoder/edu-all', 'educoder/magic-check' %>
+
+
+
+
+
+
+ <%= yield %>
+
+ <%= render :partial => 'layouts/footer' %>
+
+
+ <%= l(:label_loading) %>
+
+
+
+<%= javascript_include_tag 'educoder/edu_application','educoder/jquery.raty' %>
+