]> git.openstreetmap.org Git - rails.git/commitdiff
Move OpenID logo out of locale string
authorAnton Khorev <tony29@yandex.ru>
Wed, 10 Jul 2024 10:15:20 +0000 (13:15 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 10 Jul 2024 10:32:11 +0000 (13:32 +0300)
app/views/application/_auth_providers.html.erb
config/locales/en.yml

index d2ff6865fcbfb4c1ec07f04e9161f071029b305a..14e296a07c418f9ca06f88212c57c70cf3478f19 100644 (file)
   <%# :tabindex starts high to allow rendering at the bottom of the template %>
   <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
     <div id="login_openid_url" class="mb-3">
-      <label for="openid_url" class="form-label"><%= t ".openid_html", :logo => openid_logo %></label>
+      <label for="openid_url" class="form-label">
+        <%= openid_logo %>
+        <%= t ".openid_url" %>
+      </label>
       <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
       <%= text_field_tag("openid_url", "", :tabindex => 20, :autocomplete => "on", :class => "form-control") %>
       <span class="form-text text-body-secondary">(<a href="<%= t "accounts.edit.openid.link" %>" target="_new"><%= t "accounts.edit.openid.link text" %></a>)</span>
index 846bab813c75da88b8bc7aa7265c681e48b90311..2eaee052e2792d30d58a02af64057bbb53b4003f 100644 (file)
@@ -2584,7 +2584,7 @@ en:
       muted_users: Muted Users
     auth_providers:
       openid_logo_alt: "Log in with an OpenID"
-      openid_html: "%{logo} OpenID URL"
+      openid_url: "OpenID URL"
       openid_login_button: "Continue"
       openid:
         title: Log in with OpenID