From: Tom Hughes Date: Thu, 12 Aug 2010 23:05:02 +0000 (+0100) Subject: Use normal notice system to display login banner X-Git-Tag: live~6821^2~12 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b3d92954d3ecfa01555bd621960e17f29d76d8d9 Use normal notice system to display login banner --- 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 -}