From 782098c6e7d8ec89ca887f963088666bff6f0d4a Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 24 Oct 2014 14:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E7=89=88?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=AE=E6=94=B9=E5=AD=A6=E6=A0=A1=E3=80=81?= =?UTF-8?q?=E5=AD=A6=E6=A0=A1=E5=88=97=E8=A1=A8=E8=B7=A8=E5=9F=9F=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 3 - app/views/my/account.html.erb | 2 +- app/views/school/index.html.erb | 129 ++++++++++++++---------------- config/locales/zh.yml | 3 +- 4 files changed, 60 insertions(+), 77 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2ba16c742..a577529cb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1836,11 +1836,8 @@ module ApplicationHelper bids_link = link_to l(:label_requirement_enterprise), {:controller => 'bids', :action => 'index'} forum_link = link_to l(:label_project_module_forums), {:controller => "forums", :action => "index"} stores_link = link_to l(:label_stores_index), {:controller => 'stores', :action=> 'index'} - - school_all_school_link = link_to l(:label_school_all), {:controller => 'school', :action => 'index'} - #@nav_dispaly_project_label nav_list = Array.new nav_list.push(school_all_school_link) if @nav_dispaly_course_all_label && @show_course == 1 diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index df7a1310b..259fa8cc4 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -16,7 +16,7 @@ function get_options(value) { $.ajax({ type: "POST", - url: 'http://<%= Setting.host_name%>/school/get_options/' + encodeURIComponent(value), + url: 'http://<%= Setting.host_user%>/school/get_options/' + encodeURIComponent(value), data: 'text', success: function (data) { $("#province").val(value); diff --git a/app/views/school/index.html.erb b/app/views/school/index.html.erb index 97035ebc2..ded1fb161 100644 --- a/app/views/school/index.html.erb +++ b/app/views/school/index.html.erb @@ -1,73 +1,58 @@ <% port = ":3000" if Rails.env.development? %>
- - <%= link_to l(:label_all_schol),school_index_path %> - <% if User.current.logged? %> - <%= l(:label_my_school) %> - <% end %> -
-+ <%= link_to l(:label_all_schol),school_index_path %> + <% if User.current.logged? %> + + <%= l(:label_my_school) %> + + <% end %> +
+