Commit 9bd6f336 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch 'chore/unnecessary-css-class-removal' into 'master'

Remove unnecessary CSS class

Closes #66163

See merge request gitlab-org/gitlab-ce!32320
parents 955e23d9 65272b9e
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
Allow projects within this group to use Git LFS Allow projects within this group to use Git LFS
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs') = link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
%br/ %br/
%span.descr This setting can be overridden in each project. %span This setting can be overridden in each project.
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label s_('ProjectCreationLevel|Allowed to create projects') = f.label s_('ProjectCreationLevel|Allowed to create projects')
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
%span.d-block %span.d-block
- group_link = link_to @group.name, group_path(@group) - group_link = link_to @group.name, group_path(@group)
= s_('GroupSettings|Prevent sharing a project within %{group} with other groups').html_safe % { group: group_link } = s_('GroupSettings|Prevent sharing a project within %{group} with other groups').html_safe % { group: group_link }
%span.descr.text-muted= share_with_group_lock_help_text(@group) %span.js-descr.text-muted= share_with_group_lock_help_text(@group)
.form-group.append-bottom-default .form-group.append-bottom-default
.form-check .form-check
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= form.check_box :only_allow_merge_if_pipeline_succeeds, class: 'form-check-input' = form.check_box :only_allow_merge_if_pipeline_succeeds, class: 'form-check-input'
= form.label :only_allow_merge_if_pipeline_succeeds, class: 'form-check-label' do = form.label :only_allow_merge_if_pipeline_succeeds, class: 'form-check-label' do
= s_('ProjectSettings|Pipelines must succeed') = s_('ProjectSettings|Pipelines must succeed')
.descr.text-secondary .text-secondary
= s_('ProjectSettings|Pipelines need to be configured to enable this feature.') = s_('ProjectSettings|Pipelines need to be configured to enable this feature.')
= link_to icon('question-circle'), = link_to icon('question-circle'),
help_page_path('ci/merge_request_pipelines/index.md', help_page_path('ci/merge_request_pipelines/index.md',
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
= form.radio_button :merge_method, :merge, class: "js-merge-method-radio form-check-input" = form.radio_button :merge_method, :merge, class: "js-merge-method-radio form-check-input"
= label_tag :project_merge_method_merge, class: 'form-check-label' do = label_tag :project_merge_method_merge, class: 'form-check-label' do
= s_('ProjectSettings|Merge commit') = s_('ProjectSettings|Merge commit')
.descr.text-secondary .text-secondary
= s_('ProjectSettings|Every merge creates a merge commit') = s_('ProjectSettings|Every merge creates a merge commit')
.form-check.mb-2 .form-check.mb-2
= form.radio_button :merge_method, :rebase_merge, class: "js-merge-method-radio form-check-input" = form.radio_button :merge_method, :rebase_merge, class: "js-merge-method-radio form-check-input"
= label_tag :project_merge_method_rebase_merge, class: 'form-check-label' do = label_tag :project_merge_method_rebase_merge, class: 'form-check-label' do
= s_('ProjectSettings|Merge commit with semi-linear history') = s_('ProjectSettings|Merge commit with semi-linear history')
.descr.text-secondary .text-secondary
= s_('ProjectSettings|Every merge creates a merge commit') = s_('ProjectSettings|Every merge creates a merge commit')
%br %br
= s_('ProjectSettings|Fast-forward merges only') = s_('ProjectSettings|Fast-forward merges only')
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
= form.radio_button :merge_method, :ff, class: "js-merge-method-radio qa-radio-button-merge-ff form-check-input" = form.radio_button :merge_method, :ff, class: "js-merge-method-radio qa-radio-button-merge-ff form-check-input"
= label_tag :project_merge_method_ff, class: 'form-check-label' do = label_tag :project_merge_method_ff, class: 'form-check-label' do
= s_('ProjectSettings|Fast-forward merge') = s_('ProjectSettings|Fast-forward merge')
.descr.text-secondary .text-secondary
= s_('ProjectSettings|No merge commits are created') = s_('ProjectSettings|No merge commits are created')
%br %br
= s_('ProjectSettings|Fast-forward merges only') = s_('ProjectSettings|Fast-forward merges only')
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
= f.label :build_allow_git_fetch_false, class: 'form-check-label' do = f.label :build_allow_git_fetch_false, class: 'form-check-label' do
%strong git clone %strong git clone
%br %br
%span.descr %span
= _("Slower but makes sure the project workspace is pristine as it clones the repository from scratch for every job") = _("Slower but makes sure the project workspace is pristine as it clones the repository from scratch for every job")
.form-check .form-check
= f.radio_button :build_allow_git_fetch, 'true', { class: 'form-check-input' } = f.radio_button :build_allow_git_fetch, 'true', { class: 'form-check-input' }
= f.label :build_allow_git_fetch_true, class: 'form-check-label' do = f.label :build_allow_git_fetch_true, class: 'form-check-label' do
%strong git fetch %strong git fetch
%br %br
%span.descr %span
= _("Faster as it re-uses the project workspace (falling back to clone if it doesn't exist)") = _("Faster as it re-uses the project workspace (falling back to clone if it doesn't exist)")
%hr %hr
......
...@@ -23,7 +23,7 @@ describe 'groups/edit.html.haml' do ...@@ -23,7 +23,7 @@ describe 'groups/edit.html.haml' do
render render
expect(rendered).to have_content("Prevent sharing a project within #{test_group.name} with other groups") expect(rendered).to have_content("Prevent sharing a project within #{test_group.name} with other groups")
expect(rendered).to have_css('.descr', text: 'help text here') expect(rendered).to have_css('.js-descr', text: 'help text here')
expect(rendered).to have_field('group_share_with_group_lock', checkbox_options) expect(rendered).to have_field('group_share_with_group_lock', checkbox_options)
end end
end end
......
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