From 2ca1362e83114d80d4fdf0de33223de17cf5738d Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 25 Feb 2014 15:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E6=8C=89=E7=94=A8=E6=88=B7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E2=80=9D=E5=92=8C=E2=80=9C=E6=90=9C=E7=B4=A2=E2=80=9D?= =?UTF-8?q?=E7=9A=84=E5=8C=BA=E5=88=AB=EF=BC=8C=E5=88=86=E5=88=AB=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=90=9C=E7=B4=A2=E4=BB=80=E4=B9=88=EF=BC=9F=20?= =?UTF-8?q?=E4=B8=8A=E9=9D=A2=E6=90=9C=E7=B4=A2=E5=88=A0=E6=8E=89=201?= =?UTF-8?q?=E3=80=81=E6=A0=87=E7=AD=BE=E7=9A=84=E6=A0=BC=E5=BC=8F=E9=9C=80?= =?UTF-8?q?=20=E8=A6=81=E4=BC=98=E5=8C=96=EF=BC=88=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=B6=89=E5=8F=8A=E5=88=B0=E6=A0=87=E7=AD=BE=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E6=96=B9=E7=9A=84=E6=A0=87=E7=AD=BE=E7=9A=84=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=83=BD=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4=EF=BC=89=20tag?= =?UTF-8?q?=E5=91=A8=E5=9B=B4=E8=B7=9D=E7=A6=BB=20=E2=80=9C=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E9=80=9A=E7=9F=A5=E2=80=9C=E5=BA=94=E8=AF=A5=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=88=B0=E2=80=9C=E8=AF=BE=E7=A8=8B=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E2=80=9D=E5=90=8E=E9=9D=A2=20=20=E6=94=B9=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/users_helper.rb | 5 +++++ app/views/account/register.html.erb | 2 +- app/views/layouts/_base_footer.html.erb | 1 - app/views/layouts/base_courses.html.erb | 6 +++--- app/views/layouts/base_stores.html.erb | 2 +- app/views/layouts/base_users.html.erb | 2 +- config/locales/zh.yml | 2 +- public/stylesheets/application.css | 4 ++-- 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 1b41fada2..5a3922468 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -240,4 +240,9 @@ module UsersHelper displayed_item = %w|index| displayed_item.include?(params['action']) end + # base user上面searchBar显示 + def show_search_bar params + displayed_flag = %w|index| + !displayed_flag.include?(params['action']) + end end diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index 3aabc814a..1ab3b4a69 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -302,7 +302,7 @@ diff --git a/app/views/layouts/_base_footer.html.erb b/app/views/layouts/_base_footer.html.erb index 24a72eac4..6de055d04 100644 --- a/app/views/layouts/_base_footer.html.erb +++ b/app/views/layouts/_base_footer.html.erb @@ -6,7 +6,6 @@ <%= debug(params) if Rails.env.development? %> -<%= 'request.headers[REQUEST_URI] ===> '+request.headers['REQUEST_URI'] if Rails.env.development? %>