From 10e3fc2af69a62b47d766d2ef4acedf4fe72af3c Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Fri, 22 Oct 2021 15:08:17 -0400 Subject: [PATCH] Remove whitespace in element attributes (#15166) For most of these this isn't a big deal because `class` is delimited by whitespace, but it changes the meaning of the `id` attribute since it must be an exact match (including whitespace). There is also a data-* attribute or two in here that may have had their semantics changed. --- app/views/moderations/actions_panel.html.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/moderations/actions_panel.html.erb b/app/views/moderations/actions_panel.html.erb index 00126ad2e..1247adba9 100644 --- a/app/views/moderations/actions_panel.html.erb +++ b/app/views/moderations/actions_panel.html.erb @@ -129,7 +129,7 @@

<%= t("views.moderations.actions.experience.subtitle") %>

-
+
<%= inline_svg_tag("chevron-toggle.svg", aria: true, title: t("views.moderations.actions.toggle")) %>
@@ -145,10 +145,10 @@ class="level-rating-button <%= " selected" if current_rating_value == rating_level[0] %>" data-user-id="<%= current_user.id %>" data-article-id="<%= @moderatable.id %>" - data-group=" experience_level "> -
- <%= rating_level[1] %> - <%= t("views.moderations.actions.experience.level.#{rating_name}") %> + data-group="experience_level"> +
+ <%= rating_level[1] %> + <%= t("views.moderations.actions.experience.level.#{rating_name}") %>
<%= inline_svg_tag("checkmark.svg", aria: true, class: "crayons-icon", title: t("views.moderations.actions.checkmark")) %> @@ -161,10 +161,10 @@
<% if current_user.any_admin? && @moderatable.published %> -
+
-
- +
+