Commit 1c62b338 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch...

Merge branch '219121-resolve-the-need-for-disabling-redundant-check-in-haml-templates' into 'master'

Resolve the need for disabling redundant check in haml templates

Closes #219121

See merge request gitlab-org/gitlab!34860
parents ae4384f2 9bacc3d0
...@@ -86,34 +86,22 @@ ...@@ -86,34 +86,22 @@
%li %li
%span.light Current sign-in IP: %span.light Current sign-in IP:
%strong %strong
- if @user.current_sign_in_ip # rubocop:disable Style/RedundantCondition = @user.current_sign_in_ip || _('never')
= @user.current_sign_in_ip
- else
never
%li %li
%span.light Current sign-in at: %span.light Current sign-in at:
%strong %strong
- if @user.current_sign_in_at = @user.current_sign_in_at&.to_s(:medium) || _('never')
= @user.current_sign_in_at.to_s(:medium)
- else
never
%li %li
%span.light Last sign-in IP: %span.light Last sign-in IP:
%strong %strong
- if @user.last_sign_in_ip # rubocop:disable Style/RedundantCondition = @user.last_sign_in_ip || _('never')
= @user.last_sign_in_ip
- else
never
%li %li
%span.light Last sign-in at: %span.light Last sign-in at:
%strong %strong
- if @user.last_sign_in_at = @user.last_sign_in_at&.to_s(:medium) || _('never')
= @user.last_sign_in_at.to_s(:medium)
- else
never
%li %li
%span.light Sign-in count: %span.light Sign-in count:
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
- elsif type == 'checkbox' - elsif type == 'checkbox'
= form.check_box name = form.check_box name
- elsif type == 'select' - elsif type == 'select'
= form.select name, options_for_select(choices, value ? value : default_choice), {}, { class: "form-control"} # rubocop:disable Style/RedundantCondition = form.select name, options_for_select(choices, value || default_choice), {}, { class: "form-control"}
- elsif type == 'password' - elsif type == 'password'
= form.password_field name, autocomplete: "new-password", placeholder: placeholder, class: "form-control", required: value.blank? && required, data: { qa_selector: "#{name.downcase.gsub('\s', '')}_field" } = form.password_field name, autocomplete: "new-password", placeholder: placeholder, class: "form-control", required: value.blank? && required, data: { qa_selector: "#{name.downcase.gsub('\s', '')}_field" }
- if help - if help
......
...@@ -27428,6 +27428,9 @@ msgstr "" ...@@ -27428,6 +27428,9 @@ msgstr ""
msgid "needs to be between 10 minutes and 1 month" msgid "needs to be between 10 minutes and 1 month"
msgstr "" msgstr ""
msgid "never"
msgstr ""
msgid "never expires" msgid "never expires"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment