Moved oauth_clients page to a sub-page of the user - makes it more obvious that the oauth_clients page is for that specific user.
This commit is contained in:
parent
f50670e34d
commit
e470d8a659
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<h1><%= t'oauth.client_application.edit.title' %></h1>
|
||||
<% form_for :client_application, @client_application, :url => oauth_client_path(@client_application), :html => { :method => :put } do |f| %>
|
||||
<% form_for :client_application, @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
<br/>
|
||||
<%= submit_tag t'oauth.client_application.edit.submit' %>
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
|
||||
<p><%= t'oauth.client_application.show.support_notice' %></p>
|
||||
|
||||
<p><%= link_to t('oauth.client_application.show.edit'), edit_oauth_client_url(@client_application) %></p>
|
||||
<p><%= link_to t('oauth.client_application.show.edit'), edit_oauth_client_url(@client_application.user.display_name, @client_application) %></p>
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect '/message/delete/:message_id', :controller => 'message', :action => 'delete'
|
||||
|
||||
# oauth admin pages (i.e: for setting up new clients, etc...)
|
||||
map.resources :oauth_clients
|
||||
map.resources :oauth_clients, :path_prefix => '/user/:display_name'
|
||||
map.connect '/oauth/revoke', :controller => 'oauth', :action => 'revoke'
|
||||
map.authorize '/oauth/authorize', :controller => 'oauth', :action => 'oauthorize'
|
||||
map.request_token '/oauth/request_token', :controller => 'oauth', :action => 'request_token'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue