Whitespace fixes for oauth_clients erb files

This commit is contained in:
Andy Allan 2019-03-06 10:53:57 +01:00 committed by Tom Hughes
parent 84bdc5d048
commit e3470746bf
2 changed files with 13 additions and 13 deletions

View file

@ -8,15 +8,15 @@
<table> <table>
<tr><th><%= t '.application' %></th> <tr><th><%= t '.application' %></th>
<th><%= t '.issued_at' %></th><th>&nbsp;</th></tr> <th><%= t '.issued_at' %></th><th>&nbsp;</th></tr>
<% @tokens.each do |token|%> <% @tokens.each do |token| %>
<%= content_tag_for :tr, token do %> <%= content_tag_for :tr, token do %>
<td><%= link_to token.client_application.name, token.client_application.url %></td> <td><%= link_to token.client_application.name, token.client_application.url %></td>
<td><%= token.authorized_at %></td> <td><%= token.authorized_at %></td>
<td> <td>
<%= form_tag :controller => 'oauth', :action => 'revoke' do %> <%= form_tag :controller => 'oauth', :action => 'revoke' do %>
<%= hidden_field_tag 'token', token.token %> <%= hidden_field_tag 'token', token.token %>
<%= submit_tag t('.revoke') %> <%= submit_tag t('.revoke') %>
<% end %> <% end %>
</td> </td>
<% end %> <% end %>
<% end %> <% end %>
@ -27,7 +27,7 @@
<p><%= raw(t('.no_apps', :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p> <p><%= raw(t('.no_apps', :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
<% else %> <% else %>
<p><%= t '.registered_apps' %></p> <p><%= t '.registered_apps' %></p>
<% @client_applications.each do |client|%> <% @client_applications.each do |client| %>
<%= div_for client do %> <%= div_for client do %>
<%= link_to client.name, :action => :show, :id => client.id %> <%= link_to client.name, :action => :show, :id => client.id %>
<% end %> <% end %>

View file

@ -3,19 +3,19 @@
<% end %> <% end %>
<div class='prose'> <div class='prose'>
<p> <p>
<strong><%= t '.key' %></strong> <%=@client_application.key %> <strong><%= t '.key' %></strong> <%= @client_application.key %>
</p> </p>
<p> <p>
<strong><%= t '.secret' %></strong> <%=@client_application.secret %> <strong><%= t '.secret' %></strong> <%= @client_application.secret %>
</p> </p>
<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>
<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>
<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>
<p><%= t '.requests' %></p> <p><%= t '.requests' %></p>
@ -28,6 +28,6 @@
<p><%= t '.support_notice' %></p> <p><%= t '.support_notice' %></p>
</div> </div>
<div class="buttons"> <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('.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('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class => "oauth-delete deemphasize" %>
</div> </div>