From 23fdc0ca6bdb759fdb00c1f88aca52ccb45894e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20P=C3=A9rez=20de=20Rada=20Fiol?= Date: Wed, 10 Jun 2020 23:38:32 +0200 Subject: [PATCH] Fix erblint errors on the `app/views/users` folder (#8389) * Fix erblint errors on the `app/views/users` folder * Fix mistake --- app/views/users/_profile.html.erb | 2 +- app/views/users/_publishing_from_rss.html.erb | 6 +++++- app/views/users/_ux.html.erb | 6 +++--- app/views/users/edit.html.erb | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/users/_profile.html.erb b/app/views/users/_profile.html.erb index a04555a9e..f30efa3b4 100644 --- a/app/views/users/_profile.html.erb +++ b/app/views/users/_profile.html.erb @@ -4,7 +4,7 @@
- + " aria-label="Go to your profile page" class="mr-2"> <%= community_name %> badge

Add the <%= community_name %> badge to your personal site. Click here for the code.

diff --git a/app/views/users/_publishing_from_rss.html.erb b/app/views/users/_publishing_from_rss.html.erb index d6fb1b9f8..db4b6475a 100644 --- a/app/views/users/_publishing_from_rss.html.erb +++ b/app/views/users/_publishing_from_rss.html.erb @@ -41,7 +41,11 @@
<%= f.check_box :feed_referential_link, class: "crayons-checkbox" %> - <%= f.label :feed_referential_link, "Replace self-referential links with #{community_name}-specific links

If you check this box, the post will automatically change any URLs included in the post to refer to the version of that article on #{community_name} if available. This is primarily meant for folks migrating their entire blog onto #{community_name}.

".html_safe, class: "crayons-field__label" %> + <%= f.label :feed_referential_link, + "Replace self-referential links with #{community_name}-specific links

\ + If you check this box, the post will automatically change any URLs included in the post to refer to the version of that article on #{community_name} if available. \ + This is primarily meant for folks migrating their entire blog onto #{community_name}.

".html_safe, + class: "crayons-field__label" %>
<%= f.hidden_field :tab, value: @tab %> diff --git a/app/views/users/_ux.html.erb b/app/views/users/_ux.html.erb index 78ccc9f6f..975d4a6ad 100644 --- a/app/views/users/_ux.html.erb +++ b/app/views/users/_ux.html.erb @@ -23,7 +23,7 @@
<%= f.label :config_navbar, "Site Navbar", class: "crayons-field__label" %>
- <% ["default", "static"].each do |navbar| %> + <% %w[default static].each do |navbar| %> <%= render partial: "navbar_selector", locals: { f: f, navbar: navbar } %> <% end %>
@@ -35,7 +35,7 @@
<%= f.label :editor_version, "Editor Version", class: "crayons-field__label" %>
- <% ["v1", "v2"].each do |version| %> + <% %w[v1 v2].each do |version| %> <%= render partial: "editor_selector", locals: { f: f, version: version } %> <% end %>
@@ -47,7 +47,7 @@
<%= f.label :experience_level, "What is your approximate coding experience level (1-5)?", class: "crayons-field__label" %>
- <% ["1", "3", "5", "8", "10"].each_with_index do |exp, i| %> + <% %w[1 3 5 8 10].each_with_index do |exp, i| %> <%= render partial: "experience_selector", locals: { f: f, exp: exp, i: i } %> <% end %>
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index e58d03a12..672c1f7ae 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -37,7 +37,7 @@ <% else %>

- Settings for @<%= @user.username.truncate(User::USERNAME_MAX_LENGTH) %> + Settings for ">@<%= @user.username.truncate(User::USERNAME_MAX_LENGTH) %>

<% end %> @@ -54,7 +54,7 @@