From 058217bc69fe722fa4da9aaa49c5043c84dc9363 Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Sat, 1 May 2010 11:25:47 +0100 Subject: [PATCH 1/1] Add the OpenID logo to all openid url entry textfields for clarity --- app/views/user/account.html.erb | 2 +- app/views/user/login.html.erb | 2 +- app/views/user/new.html.erb | 2 +- public/stylesheets/common.css | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index e1fe719e0..0bb41a355 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -28,7 +28,7 @@ <%= t 'user.account.openid.openid' %> - <%= f.text_field :openid_url %> (<%= t 'user.account.openid.link text' %>) + <%= f.text_field :openid_url, {:class => "openid_url"} %> (<%= t 'user.account.openid.link text' %>) diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index b93fe892a..76c18595a 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -49,7 +49,7 @@ function openid_signin(provider) <%= image_tag "openid-16x16.gif", :alt => t('user.login.openid_logo_alt') %> <%= t 'user.login.openid' %> - <%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3}) %> + <%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url"}) %> diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index e7aa9313d..ace79e446 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -32,7 +32,7 @@ <%= t 'user.new.confirm password' %><%= password_field('user', 'pass_crypt_confirmation',{:size => 30, :maxlength => 255, :tabindex => 5}) %>   - <%= t 'user.new.openID' %><%= text_field('user', 'openid_url',{:size => 50, :maxlength => 255, :tabindex => 6, :value => @openID}) %> + <%= t 'user.new.openID' %><%= text_field('user', 'openid_url',{:size => 50, :maxlength => 255, :tabindex => 6, :value => @openID, :class => "openid_url"}) %> <%= t 'user.new.openID description' %>   diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index ae6c2709d..34d8571f4 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -740,6 +740,11 @@ abbr.geo { background: #fff; } +.openid_url { + background: url('../images/openid-inputicon.gif') repeat-y left; + padding-left: 16px; +} + /* Rules for Login page */ .loginBox { float: left; -- 2.39.5