move to 2.5.5
[anni] / lib / pleroma / web / templates / o_auth / o_auth / consumer.html.eex
1 <h2><%= Gettext.dpgettext("static_pages", "oauth external provider page title", "Sign in with external provider") %></h2>
2
3 <%= form_for @conn, Routes.o_auth_path(@conn, :prepare_request), [as: "authorization", method: "get"], fn f -> %>
4   <div style="display: none">
5     <%= render Phoenix.Controller.view_module(@conn), "_scopes.html", Map.merge(assigns, %{form: f}) %>
6   </div>
7
8   <%= hidden_input f, :client_id, value: @client_id %>
9   <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
10   <%= hidden_input f, :state, value: @state %>
11
12     <%= for strategy <- Pleroma.Config.oauth_consumer_strategies() do %>
13       <%= submit Gettext.dpgettext("static_pages", "oauth external provider sign in button", "Sign in with %{strategy}", strategy: String.capitalize(strategy)), name: "provider", value: strategy %>
14     <% end %>
15 <% end %>