From dba3940571cddafefed4651e059ee6d83e7b8881 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Dec 2019 22:54:04 +0000 Subject: [PATCH] Replace content_tag_for with a simple tr element --- app/views/oauth_clients/index.html.erb | 19 +++++++++++-------- .../oauth_clients_controller_test.rb | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/views/oauth_clients/index.html.erb b/app/views/oauth_clients/index.html.erb index 41e1e1446..f1dc4afcd 100644 --- a/app/views/oauth_clients/index.html.erb +++ b/app/views/oauth_clients/index.html.erb @@ -6,19 +6,22 @@

<%= t ".my_tokens" %>

<%= t ".list_tokens" %>

- - + + + + + <% @tokens.each do |token| %> - <%= content_tag_for :tr, token do %> + - <% end %> + <% end %>
<%= t ".application" %><%= t ".issued_at" %> 
<%= 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 %>
<% end %> diff --git a/test/controllers/oauth_clients_controller_test.rb b/test/controllers/oauth_clients_controller_test.rb index 81ab290b9..7a963a8e2 100644 --- a/test/controllers/oauth_clients_controller_test.rb +++ b/test/controllers/oauth_clients_controller_test.rb @@ -37,6 +37,7 @@ class OauthClientsControllerTest < ActionController::TestCase def test_index user = create(:user) create_list(:client_application, 2, :user => user) + create_list(:access_token, 2, :user => user) get :index, :params => { :display_name => user.display_name } -- 2.45.1