Fix some HTML tag mismatches and other glitches. These are minor, and don't appear to cause browsers any problems, but for the sake of correctness:
* A closing td which should be a closing div.
* A closing h3 for a corresponding h6
* Two tables with `<thead>` tag and missing `<tr>` around the `<th>` headings.
test change for thead fix
<% if @applications.length > 0 %>
<table class="table table-borderless table-striped">
<thead>
- <th><%= t ".name" %></th>
- <th><%= t ".permissions" %></th>
- <th></th>
- <th></th>
+ <tr>
+ <th><%= t ".name" %></th>
+ <th><%= t ".permissions" %></th>
+ <th></th>
+ <th></th>
+ </tr>
</thead>
<tbody>
<%= render :partial => "application", :collection => @applications %>
<div>
<%= link_to t(".edit"), edit_oauth_application_path(@application), :class => "btn btn-outline-primary" %>
<%= link_to t(".delete"), oauth_application_path(@application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_delete") } } %>
-</td>
+</div>
<% if @applications.length > 0 %>
<table class="table table-borderless table-striped">
<thead>
- <th><%= t ".application" %></th>
- <th><%= t ".permissions" %></th>
- <th></th>
+ <tr>
+ <th><%= t ".application" %></th>
+ <th><%= t ".permissions" %></th>
+ <th></th>
+ </tr>
</thead>
<tbody>
<%= render :partial => "application", :collection => @applications %>
<a href='<%= t ".#{site}.url" %>'>
<%= t ".#{site}.title" %>
</a>
- </h3>
+ </h6>
<p class='card-text'><%= t ".#{site}.description" %></p>
</div>
<div class="card-footer">
get oauth_applications_path
assert_response :success
assert_template "oauth2_applications/index"
- assert_select "tr", 2
+ assert_select "tbody tr", 2
end
def test_new
get oauth_authorized_applications_path
assert_response :success
assert_template "oauth2_authorized_applications/index"
- assert_select "tr", 2
+ assert_select "tbody tr", 2
end
def test_destroy
get oauth_authorized_applications_path
assert_response :success
assert_template "oauth2_authorized_applications/index"
- assert_select "tr", 1
+ assert_select "tbody tr", 1
end
end