]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth/authorize.html.erb
Merge branch 'convert_roundabout_exits' of https://github.com/jguthrie100/openstreetm...
[rails.git] / app / views / oauth / authorize.html.erb
1 <% content_for :heading do %>
2   <h1><%= t ".title" %></h1>
3 <% end %>
4
5 <p><%= raw t(".request_access", :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(current_user.display_name, :controller => :user, :action => :view, :display_name => current_user.display_name)) %></p>
6
7 <%= form_tag authorize_url do %>
8   <%= hidden_field_tag "oauth_token", @token.token %>
9   <%- if params[:oauth_callback] -%>
10     <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
11   <%- end -%>
12   <p><%= t '.allow_to' %></p>
13   <ul>
14   <% @token.client_application.permissions.each do |perm| %>
15     <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t ".#{perm}" %></li>
16   <% end %>
17   </ul>
18   <p><%= submit_tag t(".grant_access") %></p>
19 <% end %>