From: Andy Allan Date: Wed, 6 Mar 2019 09:53:57 +0000 (+0100) Subject: Whitespace fixes for oauth_clients erb files X-Git-Tag: live~2671^2~11 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e3470746bf98f7985d6176ffa85f99febc4b3c34 Whitespace fixes for oauth_clients erb files --- diff --git a/app/views/oauth_clients/index.html.erb b/app/views/oauth_clients/index.html.erb index 64a316718..f61048f72 100644 --- a/app/views/oauth_clients/index.html.erb +++ b/app/views/oauth_clients/index.html.erb @@ -8,15 +8,15 @@ - <% @tokens.each do |token|%> + <% @tokens.each do |token| %> <%= content_tag_for :tr, token do %> <% end %> <% end %> @@ -27,7 +27,7 @@

<%= raw(t('.no_apps', :oauth => "OAuth")) %>

<% else %>

<%= t '.registered_apps' %>

-<% @client_applications.each do |client|%> +<% @client_applications.each do |client| %> <%= div_for client do %> <%= link_to client.name, :action => :show, :id => client.id %> <% end %> diff --git a/app/views/oauth_clients/show.html.erb b/app/views/oauth_clients/show.html.erb index 200fbc7be..55fffd482 100644 --- a/app/views/oauth_clients/show.html.erb +++ b/app/views/oauth_clients/show.html.erb @@ -3,19 +3,19 @@ <% end %>

- <%= t '.key' %> <%=@client_application.key %> + <%= t '.key' %> <%= @client_application.key %>

- <%= t '.secret' %> <%=@client_application.secret %> + <%= t '.secret' %> <%= @client_application.secret %>

- <%= t '.url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %> + <%= t '.url' %> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %>

- <%= t '.access_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %> + <%= t '.access_url' %> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %>

- <%= t '.authorize_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %> + <%= t '.authorize_url' %> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %>

<%= t '.requests' %>

@@ -28,6 +28,6 @@

<%= t '.support_notice' %>

- <%= 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" %>
<%= t '.application' %> <%= t '.issued_at' %> 
<%= link_to token.client_application.name, token.client_application.url %> <%= token.authorized_at %> - <%= 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 %>