From d749383308a19b7c284ef199f715a2713bd5b7ca Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 3 Sep 2009 20:06:12 +0200 Subject: visual clean up: it all starts with the login screen. this will be so minimal! --- app/controllers/sessions_controller.rb | 2 +- app/views/sessions/new.html.erb | 35 +++++++++++++++++++++++----------- public/stylesheets/admin.css | 17 ++++++++++++++--- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 779e260..813344b 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -35,7 +35,7 @@ class SessionsController < ApplicationController protected # Track failed login attempts def note_failed_signin - flash[:error] = "Couldn't log you in as '#{params[:login]}'" + flash[:error] = "login not successful" logger.warn "Failed login for '#{params[:login]}'" \ "from #{request.remote_ip} at #{Time.now.utc}" end diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 3a27464..fef0912 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,11 +1,24 @@ -

Log In

- -<% form_tag session_path do -%> -

<%= label_tag 'login' %>
-<%= text_field_tag 'login', @login %>

- -

<%= label_tag 'password' %>
-<%= password_field_tag 'password', nil %>

- -

<%= submit_tag 'Log in' %>

-<% end -%> +
+ <% form_tag session_path do -%> + + + + + + + + + + + + + + + + + +
+ <%= flash[:error] %>  +
Login<%= text_field_tag 'login', @login %>
Password<%= password_field_tag 'password', nil %>
<%= submit_tag 'log in' %>
+ <% end -%> +
\ No newline at end of file diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index d68d69f..2caffd3 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -83,7 +83,7 @@ div.pagination span.current, div.pagination a:hover { background-color: #000000; } -#main_navigation a, #sub_navigation a, #metadata a { +#main_navigation a, #sub_navigation a, #metadata a, input[type=submit]{ letter-spacing: 1px; padding-left: 5px; padding-right: 5px; @@ -229,15 +229,26 @@ input[type=password] { } input[type=submit] { - min-width: 65px; - border: 1px solid #989898; + border: none; + padding-top: 0px; + padding-bottom: 1px; background-color: #ffffff; } +input[type=submit]:hover { + border: none; + color: #ffffff; + background-color: #ff9600; +} + input[type=radio] { border: 1px solid #989898; } +div#login_form input[type=text], div#login_form input[type=password] { + width: 150px; +} + textarea#page_abstract { width: 690px; height: 150px; -- cgit v1.3