From 2ce44a2a856c3b6024000cb362dc875cfa6f4618 Mon Sep 17 00:00:00 2001 From: Harry Wood Date: Sat, 5 Mar 2022 01:41:02 +0000 Subject: [PATCH] Fix minor HTML tag mismatches 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 `` tag and missing `` around the `` headings. test change for thead fix --- app/views/oauth2_applications/index.html.erb | 10 ++++++---- app/views/oauth2_applications/show.html.erb | 2 +- .../oauth2_authorized_applications/index.html.erb | 8 +++++--- app/views/site/help.html.erb | 2 +- .../controllers/oauth2_applications_controller_test.rb | 2 +- .../oauth2_authorized_applications_controller_test.rb | 4 ++-- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/views/oauth2_applications/index.html.erb b/app/views/oauth2_applications/index.html.erb index 119bf5878..4ed849f98 100644 --- a/app/views/oauth2_applications/index.html.erb +++ b/app/views/oauth2_applications/index.html.erb @@ -7,10 +7,12 @@ <% if @applications.length > 0 %> - - - - + + + + + + <%= render :partial => "application", :collection => @applications %> diff --git a/app/views/oauth2_applications/show.html.erb b/app/views/oauth2_applications/show.html.erb index 296705811..8d9c8516d 100644 --- a/app/views/oauth2_applications/show.html.erb +++ b/app/views/oauth2_applications/show.html.erb @@ -48,4 +48,4 @@
<%= 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") } } %> - +
diff --git a/app/views/oauth2_authorized_applications/index.html.erb b/app/views/oauth2_authorized_applications/index.html.erb index b9599a919..2d3ad00bd 100644 --- a/app/views/oauth2_authorized_applications/index.html.erb +++ b/app/views/oauth2_authorized_applications/index.html.erb @@ -7,9 +7,11 @@ <% if @applications.length > 0 %>
<%= t ".name" %><%= t ".permissions" %>
<%= t ".name" %><%= t ".permissions" %>
- - - + + + + + <%= render :partial => "application", :collection => @applications %> diff --git a/app/views/site/help.html.erb b/app/views/site/help.html.erb index e6c65a992..c82893e9d 100644 --- a/app/views/site/help.html.erb +++ b/app/views/site/help.html.erb @@ -16,7 +16,7 @@ <%= t ".#{site}.title" %> - +

<%= t ".#{site}.description" %>

<%= t ".application" %><%= t ".permissions" %>
<%= t ".application" %><%= t ".permissions" %>