Commit ccf58ce1 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'aqualls-okr-protected-branches' into 'master'

Revise UI text for protected branches

See merge request gitlab-org/gitlab!50475
parents d13218f7 764d66fe
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
.form-text.text-muted .form-text.text-muted
- wildcards_url = help_page_url('user/project/protected_branches', anchor: 'wildcard-protected-branches') - wildcards_url = help_page_url('user/project/protected_branches', anchor: 'wildcard-protected-branches')
- wildcards_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: wildcards_url } - wildcards_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: wildcards_url }
= (s_("ProtectedBranch|%{wildcards_link_start}Wildcards%{wildcards_link_end} such as %{code_tag_start}*-stable%{code_tag_end} or %{code_tag_start}production/*%{code_tag_end} are supported") % { wildcards_link_start: wildcards_link_start, wildcards_link_end: '</a>', code_tag_start: '<code>', code_tag_end: '</code>' }).html_safe = (s_("ProtectedBranch|%{wildcards_link_start}Wildcards%{wildcards_link_end} such as %{code_tag_start}*-stable%{code_tag_end} or %{code_tag_start}production/*%{code_tag_end} are supported.") % { wildcards_link_start: wildcards_link_start, wildcards_link_end: '</a>', code_tag_start: '<code>', code_tag_end: '</code>' }).html_safe
.form-group.row .form-group.row
%label.col-md-2.text-right{ for: 'merge_access_levels_attributes' } %label.col-md-2.text-right{ for: 'merge_access_levels_attributes' }
= s_("ProtectedBranch|Allowed to merge:") = s_("ProtectedBranch|Allowed to merge:")
......
...@@ -7,16 +7,15 @@ ...@@ -7,16 +7,15 @@
%button.btn.js-settings-toggle.qa-expand-protected-branches{ type: 'button' } %button.btn.js-settings-toggle.qa-expand-protected-branches{ type: 'button' }
= expanded ? 'Collapse' : 'Expand' = expanded ? 'Collapse' : 'Expand'
%p %p
Keep stable branches secure and force developers to use merge requests. Keep stable branches secure, and force developers to use merge requests. #{link_to "What are protected branches?", help_page_path("user/project/protected_branches")}
.settings-content .settings-content
%p %p
By default, protected branches are designed to: By default, protected branches protect your code and:
%ul %ul
%li prevent their creation, if not already created, from everybody except Maintainers %li Allow only users with Maintainer #{link_to "permissions", help_page_path("user/permissions")} to create new protected branches.
%li prevent pushes from everybody except Maintainers %li Allow only users with Maintainer permissions to push code.
%li prevent <strong>anyone</strong> from force pushing to the branch %li Prevent <strong>anyone</strong> from force-pushing to the branch.
%li prevent <strong>anyone</strong> from deleting the branch %li Prevent <strong>anyone</strong> from deleting the branch.
%p Read more about #{link_to "protected branches", help_page_path("user/project/protected_branches")} and #{link_to "project permissions", help_page_path("user/permissions")}.
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= content_for :create_protected_branch = content_for :create_protected_branch
......
---
title: Updated UI text to match style guidelines
merge_request: 50475
author: Amy Qualls @aqualls
type: other
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
.col-md-10 .col-md-10
= render "shared/buttons/project_feature_toggle", label: s_("ProtectedBranch|Toggle code owner approval"), class_list: "js-code-owner-toggle project-feature-toggle is-checked" = render "shared/buttons/project_feature_toggle", label: s_("ProtectedBranch|Toggle code owner approval"), class_list: "js-code-owner-toggle project-feature-toggle is-checked"
.form-text.text-muted .form-text.text-muted
= s_("ProtectedBranch|Pushes that change filenames matched by the CODEOWNERS file will be rejected") = s_("ProtectedBranch|Reject code pushes that change files listed in the CODEOWNERS file.")
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
dropdown_class: 'dropdown-menu-user dropdown-menu-selectable qa-allowed-to-push-dropdown capitalize-header', filter: true, dropdown_class: 'dropdown-menu-user dropdown-menu-selectable qa-allowed-to-push-dropdown capitalize-header', filter: true,
data: { input_id: 'push_access_levels_attributes', default_label: 'Select' } }) data: { input_id: 'push_access_levels_attributes', default_label: 'Select' } })
.form-text.text-muted .form-text.text-muted
Only groups that You can add only groups that have this project shared.
= link_to 'have this project shared', help_page_path('user/project/members/share_project_with_groups') = link_to 'Learn more.', help_page_path('user/project/members/share_project_with_groups')
can be added here
= render 'projects/protected_branches/shared/create_protected_branch' = render 'projects/protected_branches/shared/create_protected_branch'
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
dropdown_qa_selector: 'access_levels_content', dropdown_qa_selector: 'access_levels_content',
data: { input_id: 'create_access_levels_attributes', default_label: 'Select', qa_selector: 'access_levels_dropdown' } }) data: { input_id: 'create_access_levels_attributes', default_label: 'Select', qa_selector: 'access_levels_dropdown' } })
.form-text.text-muted .form-text.text-muted
Only groups that You can add only groups that have this project shared.
= link_to 'have this project shared', help_page_path('user/project/members/share_project_with_groups') = link_to 'Learn more.', help_page_path('user/project/members/share_project_with_groups')
can be added here
= render 'projects/protected_tags/shared/create_protected_tag' = render 'projects/protected_tags/shared/create_protected_tag'
...@@ -22681,7 +22681,7 @@ msgstr "" ...@@ -22681,7 +22681,7 @@ msgstr ""
msgid "Protected branches" msgid "Protected branches"
msgstr "" msgstr ""
msgid "ProtectedBranch|%{wildcards_link_start}Wildcards%{wildcards_link_end} such as %{code_tag_start}*-stable%{code_tag_end} or %{code_tag_start}production/*%{code_tag_end} are supported" msgid "ProtectedBranch|%{wildcards_link_start}Wildcards%{wildcards_link_end} such as %{code_tag_start}*-stable%{code_tag_end} or %{code_tag_start}production/*%{code_tag_end} are supported."
msgstr "" msgstr ""
msgid "ProtectedBranch|Allowed to merge" msgid "ProtectedBranch|Allowed to merge"
...@@ -22714,7 +22714,7 @@ msgstr "" ...@@ -22714,7 +22714,7 @@ msgstr ""
msgid "ProtectedBranch|Protected branch (%{protected_branches_count})" msgid "ProtectedBranch|Protected branch (%{protected_branches_count})"
msgstr "" msgstr ""
msgid "ProtectedBranch|Pushes that change filenames matched by the CODEOWNERS file will be rejected" msgid "ProtectedBranch|Reject code pushes that change files listed in the CODEOWNERS file."
msgstr "" msgstr ""
msgid "ProtectedBranch|Require approval from code owners:" msgid "ProtectedBranch|Require approval from code owners:"
......
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