From f2e406a41651315c0e167881307c430e927c88a5 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 25 Aug 2015 16:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=B3=A8=E5=86=8C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=94=B9=E4=B8=BA=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/account_controller.rb | 1 + app/views/account/login.html.erb | 39 +++++++++++++--------- app/views/layouts/_logined_header.html.erb | 2 +- app/views/layouts/_unlogin_header.html.erb | 4 +-- 4 files changed, 28 insertions(+), 18 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 02736346c..913612f80 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -25,6 +25,7 @@ class AccountController < ApplicationController # Login request and validation def login if request.get? + @login = params[:login] if User.current.logged? redirect_to home_url else diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 4b822a616..deec186c8 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,18 +1,18 @@ -<%= stylesheet_link_tag 'new_public'%> +<%= stylesheet_link_tag 'new_user'%> <%= stylesheet_link_tag 'leftside'%>