Fix erblint errors on the app/views/users folder (#8389)
* Fix erblint errors on the `app/views/users` folder * Fix mistake
This commit is contained in:
parent
e78a0078a7
commit
23fdc0ca6b
4 changed files with 11 additions and 7 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="crayons-card mb-6 p-6 grid gap-6">
|
||||
<div class="flex items-center">
|
||||
<a href="<%= user_url(current_user) || '#' %>" aria-label="Go to your profile page" class="mr-2">
|
||||
<a href="<%= user_url(current_user) || "#" %>" aria-label="Go to your profile page" class="mr-2">
|
||||
<img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="<%= community_name %> badge" height="32" width="32" class="dev-badge crayons-icon" />
|
||||
</a>
|
||||
<p>Add the <%= community_name %> badge to your personal site. <a href="/p/badges">Click here for the code</a>.</p>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,11 @@
|
|||
|
||||
<div class="crayons-field crayons-field--checkbox">
|
||||
<%= f.check_box :feed_referential_link, class: "crayons-checkbox" %>
|
||||
<%= f.label :feed_referential_link, "Replace self-referential links with #{community_name}-specific links <p class='crayons-field__description'>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}.</p>".html_safe, class: "crayons-field__label" %>
|
||||
<%= f.label :feed_referential_link,
|
||||
"Replace self-referential links with #{community_name}-specific links <p class='crayons-field__description'>\
|
||||
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}.</p>".html_safe,
|
||||
class: "crayons-field__label" %>
|
||||
</div>
|
||||
|
||||
<%= f.hidden_field :tab, value: @tab %>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="crayons-field">
|
||||
<%= f.label :config_navbar, "Site Navbar", class: "crayons-field__label" %>
|
||||
<div class="theme-selector-field grid gap-4 grid-cols-2 l:grid-cols-3">
|
||||
<% ["default", "static"].each do |navbar| %>
|
||||
<% %w[default static].each do |navbar| %>
|
||||
<%= render partial: "navbar_selector", locals: { f: f, navbar: navbar } %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<div class="crayons-field">
|
||||
<%= f.label :editor_version, "Editor Version", class: "crayons-field__label" %>
|
||||
<div class="theme-selector-field grid gap-4 grid-cols-2 l:grid-cols-3">
|
||||
<% ["v1", "v2"].each do |version| %>
|
||||
<% %w[v1 v2].each do |version| %>
|
||||
<%= render partial: "editor_selector", locals: { f: f, version: version } %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
<div class="crayons-field">
|
||||
<%= f.label :experience_level, "What is your approximate coding experience level (1-5)?", class: "crayons-field__label" %>
|
||||
<div class="theme-selector-field grid grid-cols-5">
|
||||
<% ["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 %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
</h1>
|
||||
<% else %>
|
||||
<h1 class="fs-2xl s:fs-3xl">
|
||||
Settings for <a href="<%= user_url(@user) || '#' %>">@<%= @user.username.truncate(User::USERNAME_MAX_LENGTH) %></a>
|
||||
Settings for <a href="<%= user_url(@user) || "#" %>">@<%= @user.username.truncate(User::USERNAME_MAX_LENGTH) %></a>
|
||||
</h1>
|
||||
<% end %>
|
||||
</header>
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
<div class="m:hidden p-2 pt-0">
|
||||
<select id="mobile-page-selector" class="crayons-select">
|
||||
<% @tab_list.each do |possible_tab| %>
|
||||
<option value="/settings/<%= possible_tab.downcase.tr(" ", "-") %>" <% if @tab == possible_tab.downcase.tr(' ', '-') %>selected<% end %>>
|
||||
<option value="/settings/<%= possible_tab.downcase.tr(" ", "-") %>" <% if @tab == possible_tab.downcase.tr(' ', '-') %> selected <% end %>>
|
||||
<%= possible_tab %>
|
||||
</option>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue