]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth/oauthorize.html.erb
Show the name of the logged in user during OAuth authorization
[rails.git] / app / views / oauth / oauthorize.html.erb
index 844a86d5228af1bfb37f9b9398cb9d1d394955ef..28178a85c945560a0d840a57b6b384d4e484c8c4 100644 (file)
@@ -1,5 +1,5 @@
 <h1>Authorize access to your account</h1>
-<p><%= t('oauth.oauthorize.request_access', :app_name => link_to(@token.client_application.name,@token.client_application.url)) %></p>
+<p><%= 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>
 <% form_tag authorize_url do %>
   <%= hidden_field_tag "oauth_token", @token.token %>
   <%- if params[:oauth_callback] -%>