]> git.openstreetmap.org Git - rails.git/blob - app/views/application/_auth_button.html.erb
Exclude `opening_hours` from semicolon splitting in tags helper (#6968)
[rails.git] / app / views / application / _auth_button.html.erb
1 <%# locals: (provider:, preferred: false) %>
2
3 <%= link_to auth_path(:provider => provider),
4             :method => :post,
5             :class => ["auth_button btn btn-outline-secondary border p-2", { "px-4 d-flex gap-3 justify-content-center align-items-center" => preferred }],
6             :title => t("application.auth_providers.#{provider}.title") do %>
7   <%= inline_svg_tag "auth_providers/#{provider}.svg",
8                      :class => "rounded-1 text-body-emphasis",
9                      :title => t("application.auth_providers.#{provider}.alt"),
10                      :size => "36" %>
11   <% if preferred %>
12     <%= t "application.auth_providers.#{provider}.title" %>
13   <% end %>
14 <% end %>