Whitespace fixes for oauth_clients erb files
This commit is contained in:
parent
84bdc5d048
commit
e3470746bf
2 changed files with 13 additions and 13 deletions
|
@ -8,15 +8,15 @@
|
|||
<table>
|
||||
<tr><th><%= t '.application' %></th>
|
||||
<th><%= t '.issued_at' %></th><th> </th></tr>
|
||||
<% @tokens.each do |token|%>
|
||||
<% @tokens.each do |token| %>
|
||||
<%= content_tag_for :tr, token do %>
|
||||
<td><%= link_to token.client_application.name, token.client_application.url %></td>
|
||||
<td><%= token.authorized_at %></td>
|
||||
<td>
|
||||
<%= form_tag :controller => 'oauth', :action => 'revoke' do %>
|
||||
<%= hidden_field_tag 'token', token.token %>
|
||||
<%= submit_tag t('.revoke') %>
|
||||
<% end %>
|
||||
<%= form_tag :controller => 'oauth', :action => 'revoke' do %>
|
||||
<%= hidden_field_tag 'token', token.token %>
|
||||
<%= submit_tag t('.revoke') %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<p><%= raw(t('.no_apps', :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
|
||||
<% else %>
|
||||
<p><%= t '.registered_apps' %></p>
|
||||
<% @client_applications.each do |client|%>
|
||||
<% @client_applications.each do |client| %>
|
||||
<%= div_for client do %>
|
||||
<%= link_to client.name, :action => :show, :id => client.id %>
|
||||
<% end %>
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
<% end %>
|
||||
<div class='prose'>
|
||||
<p>
|
||||
<strong><%= t '.key' %></strong> <%=@client_application.key %>
|
||||
<strong><%= t '.key' %></strong> <%= @client_application.key %>
|
||||
</p>
|
||||
<p>
|
||||
<strong><%= t '.secret' %></strong> <%=@client_application.secret %>
|
||||
<strong><%= t '.secret' %></strong> <%= @client_application.secret %>
|
||||
</p>
|
||||
<p>
|
||||
<strong><%= t '.url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
|
||||
<strong><%= t '.url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %>
|
||||
</p>
|
||||
<p>
|
||||
<strong><%= t '.access_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
|
||||
<strong><%= t '.access_url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %>
|
||||
</p>
|
||||
<p>
|
||||
<strong><%= t '.authorize_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
|
||||
<strong><%= t '.authorize_url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %>
|
||||
</p>
|
||||
|
||||
<p><%= t '.requests' %></p>
|
||||
|
@ -28,6 +28,6 @@
|
|||
<p><%= t '.support_notice' %></p>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<%= button_to t('.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
|
||||
<%= button_to t('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class=> "oauth-delete deemphasize" %>
|
||||
<%= button_to t('.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "oauth-edit" %>
|
||||
<%= button_to t('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class => "oauth-delete deemphasize" %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue