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,7 +8,7 @@
<table>
<tr><th><%= t '.application' %></th>
<th><%= t '.issued_at' %></th><th>&nbsp;</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>
@ -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 %>

View file

@ -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>