Skip to content

Commit

Permalink
Merge pull request #3009 from gravitystorm/svg_icons
Browse files Browse the repository at this point in the history
Add updated authentication icons
  • Loading branch information
gravitystorm committed Dec 17, 2020
2 parents aeb9c4d + c192bd0 commit bd1420a
Show file tree
Hide file tree
Showing 19 changed files with 16 additions and 8 deletions.
Binary file removed app/assets/images/aol.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/aol.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/facebook.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/facebook.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/github.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/github.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/google.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/google.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/wikipedia.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/wikipedia.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/windowslive.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/windowslive.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/wordpress.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/wordpress.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/yahoo.png
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/yahoo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions app/assets/stylesheets/common.scss
Expand Up @@ -1324,7 +1324,7 @@ tr.turn:hover {


.diary-subscribe-buttons {
position:relative;
position: relative;
top: -30px;
left: 130px;
}
Expand All @@ -1333,11 +1333,11 @@ tr.turn:hover {

#login_auth_buttons {
margin-bottom: 0;
}

#login_auth_buttons li {
float: left;
padding: $lineheight/4 $lineheight/2;
li {
float: left;
padding: $lineheight/4 $lineheight/2;
}
}

/* Rules for the account confirmation page */
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/user_helper.rb
Expand Up @@ -58,7 +58,7 @@ def openid_logo

def auth_button(name, provider, options = {})
link_to(
image_tag("#{name}.png", :alt => t("users.login.auth_providers.#{name}.alt")),
image_tag("#{name}.svg", :alt => t("users.login.auth_providers.#{name}.alt"), :class => "rounded-lg"),
auth_path(options.merge(:provider => provider)),
:class => "auth_button",
:title => t("users.login.auth_providers.#{name}.title")
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/user_helper_test.rb
Expand Up @@ -73,10 +73,10 @@ def test_openid_logo

def test_auth_button
button = auth_button("google", "google")
assert_equal("<a class=\"auth_button\" title=\"Login with Google\" href=\"/auth/google\"><img alt=\"Login with a Google OpenID\" src=\"/images/google.png\" /></a>", button)
assert_equal("<a class=\"auth_button\" title=\"Login with Google\" href=\"/auth/google\"><img alt=\"Login with a Google OpenID\" class=\"rounded-lg\" src=\"/images/google.svg\" /></a>", button)

button = auth_button("yahoo", "openid", :openid_url => "yahoo.com")
assert_equal("<a class=\"auth_button\" title=\"Login with Yahoo\" href=\"/auth/openid?openid_url=yahoo\.com\"><img alt=\"Login with a Yahoo OpenID\" src=\"/images/yahoo.png\" /></a>", button)
assert_equal("<a class=\"auth_button\" title=\"Login with Yahoo\" href=\"/auth/openid?openid_url=yahoo\.com\"><img alt=\"Login with a Yahoo OpenID\" class=\"rounded-lg\" src=\"/images/yahoo.svg\" /></a>", button)
end

private
Expand Down

0 comments on commit bd1420a

Please sign in to comment.