From b3d92954d3ecfa01555bd621960e17f29d76d8d9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 13 Aug 2010 00:05:02 +0100 Subject: [PATCH] Use normal notice system to display login banner --- app/controllers/user_controller.rb | 2 ++ app/views/user/login.html.erb | 2 -- public/stylesheets/common.css | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 93ca03d66..b9cca0cf6 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -220,6 +220,8 @@ class UserController < ApplicationController else flash.now[:error] = t 'user.login.auth failure' end + else + flash.now[:notice] = t 'user.login.notice' end end diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index ddcf7abbd..cf7f4a819 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -1,7 +1,5 @@

<%= t 'user.login.heading' %>

-
<%= t 'user.login.notice' %>
-

<%= t 'user.login.please login', :create_user_link => link_to(t('user.login.create_account'), :controller => 'user', :action => 'new', :referer => params[:referer]) %>

<% form_tag :action => 'login' do %> diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index ed89b4ad1..2590c2d5f 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -801,15 +801,3 @@ abbr.geo { .table1 { background: #fff; } - -/* Rules for login notices, if any. */ - -.loginNotice { - margin-top: 2px; - background-color:#E0EEE0; - border-color:#666666; - border-width:1px; - border-style:solid; - padding:1px; - font-weight:bold -} -- 2.43.2