Use smaller logos for OpenID logins
authorTom Hughes <tom@compton.nu>
Sun, 19 Jun 2011 16:49:36 +0000 (17:49 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 19 Jun 2011 16:49:36 +0000 (17:49 +0100)
app/views/user/login.html.erb
public/images/aol.png
public/images/google.png
public/images/myopenid.png
public/images/openid.png [new file with mode: 0644]
public/images/openid_large.png [deleted file]
public/images/wordpress.png
public/images/yahoo.png
public/stylesheets/large.css
public/stylesheets/small.css

index 124015e..2d90ba7 100644 (file)
 
       <p><%= t 'user.login.with openid' %></p>
 
-      <table id="login_openid_buttons_wide">
+      <table id="login_openid_buttons">
         <tr>
           <td>
             <%=
-              link_to_function(image_tag("openid_large.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
+              link_to_function(image_tag("openid.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
                 page[:login_form][:openid_url].value = "http://"
-                page[:login_openid_buttons_wide].hide
+                page[:login_openid_buttons].hide
                 page[:login_openid_url].show
                 page[:login_openid_submit].show
               end
           </td>
           <td><%= openid_button "google", "gmail.com" %></td>
           <td><%= openid_button "yahoo", "me.yahoo.com" %></td>
-        </tr>
-        <tr>
           <td><%= openid_button "myopenid", "myopenid.com" %></td>
           <td><%= openid_button "wordpress", "wordpress.com" %></td>
           <td><%= openid_button "aol", "aol.com" %></td>
         </tr>
       </table>
 
-      <table id="login_openid_buttons_narrow">
-        <tr>
-          <td>
-            <%=
-              link_to_function(image_tag("openid_large.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
-                page[:login_form][:openid_url].value = "http://"
-                page[:login_openid_buttons_narrow].hide
-                page[:login_openid_url].show
-                page[:login_openid_submit].show
-              end
-            %>
-          </td>
-          <td><%= openid_button "google", "gmail.com" %></td>
-        </tr>
-        <tr>
-          <td><%= openid_button "yahoo", "me.yahoo.com" %></td>
-          <td><%= openid_button "myopenid", "myopenid.com" %></td>
-        </tr>
-        <tr>
-          <td><%= openid_button "wordpress", "wordpress.com" %></td>
-          <td><%= openid_button "aol", "aol.com" %></td>
-        </tr>
-      </table>
-
       <table>
         <tr id="login_openid_url">
           <td class="fieldName nowrap">
index 7b2f228..917028b 100644 (file)
Binary files a/public/images/aol.png and b/public/images/aol.png differ
index ea2e380..8d52074 100644 (file)
Binary files a/public/images/google.png and b/public/images/google.png differ
index 1d9632c..5e410bb 100644 (file)
Binary files a/public/images/myopenid.png and b/public/images/myopenid.png differ
diff --git a/public/images/openid.png b/public/images/openid.png
new file mode 100644 (file)
index 0000000..dd6f65e
Binary files /dev/null and b/public/images/openid.png differ
diff --git a/public/images/openid_large.png b/public/images/openid_large.png
deleted file mode 100644 (file)
index 08875c4..0000000
Binary files a/public/images/openid_large.png and /dev/null differ
index 57cdd1d..21e22ed 100644 (file)
Binary files a/public/images/wordpress.png and b/public/images/wordpress.png differ
index e7b148d..7bd439d 100644 (file)
Binary files a/public/images/yahoo.png and b/public/images/yahoo.png differ
index 95490fd..a1efa85 100644 (file)
@@ -18,9 +18,3 @@
 .olControlPanZoom {
   display: none;
 }
-
-/* Rules for the login form */
-
-#login_openid_buttons_narrow {
-  display: none;
-}
index 2c6f669..f4d51c8 100644 (file)
@@ -136,10 +136,6 @@ h1 {
   max-width: 18em;
 }
 
-#login_openid_buttons_wide {
-  display: none;
-}
-
 /* Rules for the profile page */
 
 .user_map {