Merge remote-tracking branch 'upstream/pull/4972'

This commit is contained in:
Tom Hughes 2024-07-10 18:32:32 +01:00
commit 2419a011f0
2 changed files with 8 additions and 9 deletions

View file

@ -9,8 +9,7 @@ $(document).ready(function () {
});
// Add click handler to show OpenID field
$("#openid_open_url").click(function (e) {
e.preventDefault();
$("#openid_open_url").click(function () {
$("#openid_url").val("http://");
$("#login_auth_buttons").hide().removeClass("d-flex");
$("#login_openid_url").show();

View file

@ -25,13 +25,13 @@
<div class="justify-content-center d-flex align-items-center flex-wrap gap-2">
<% end %>
<%= link_to image_tag("openid.svg",
:alt => t("application.auth_providers.openid.alt"),
:size => "36"),
"#",
:id => "openid_open_url",
:title => t("application.auth_providers.openid.title"),
:class => "btn btn-light p-2" %>
<%= button_tag image_tag("openid.svg",
:alt => t(".openid.alt"),
:size => "36"),
:type => "button",
:id => "openid_open_url",
:title => t(".openid.title"),
:class => "btn btn-light p-2" %>
<% %w[google facebook microsoft github wikipedia].each do |provider| %>
<% unless @preferred_auth_provider == provider %>