]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth/authorize.html.erb
Correctly report which OAuth signature algorithms are supported
[rails.git] / app / views / oauth / authorize.html.erb
1 <% content_for :heading do %>
2   <h1>Authorize access to your account</h1>
3   <p><%= raw t('oauth.oauthorize.request_access', :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(@user.display_name, :controller => :user, :action => :view, :display_name => @user.display_name)) %></p>
4 <% end %>
5
6 <%= form_tag authorize_url do %>
7   <%= hidden_field_tag "oauth_token", @token.token %>
8   <%- if params[:oauth_callback] -%>
9     <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
10   <%- end -%>
11   <p><%= t 'oauth.oauthorize.allow_to' %></p>
12   <ul style="list-style:none">
13   <% @token.client_application.permissions.each do |perm| %>
14     <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.oauthorize.#{perm}" %></li>
15   <% end %>
16   </ul>
17   <p><%= submit_tag %></p>
18 <% end %>