diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-21 15:10:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-21 15:10:44 +0300 |
commit | eec96715e5dcbe934b4caecc6fcf9740a3fc8496 (patch) | |
tree | 8ebcd3732a5ebe4a3255c8ba157c4e090e454c6c /app/views/projects | |
parent | f73fa6daff38ea21d33a71f7bdcba34a86421333 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/_new_project_fields.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/_new_project_fields.html.haml b/app/views/projects/_new_project_fields.html.haml index ee1516facbc..25001314c07 100644 --- a/app/views/projects/_new_project_fields.html.haml +++ b/app/views/projects/_new_project_fields.html.haml @@ -3,6 +3,7 @@ - hide_init_with_readme = local_assigns.fetch(:hide_init_with_readme, false) - include_description = local_assigns.fetch(:include_description, true) - track_label = local_assigns.fetch(:track_label, 'blank_project') +- display_sha256_repository = Feature.enabled?(:support_sha256_repositories, current_user) .row{ id: project_name_id } = f.hidden_field :ci_cd_only, value: ci_cd_only @@ -95,6 +96,14 @@ = s_('ProjectsNew|Analyze your source code for known security vulnerabilities.') = link_to _('Learn more.'), help_page_path('user/application_security/sast/index'), target: '_blank', rel: 'noopener noreferrer', data: { track_action: 'followed' } + - if display_sha256_repository + .form-group + = render Pajamas::CheckboxTagComponent.new(name: 'project[use_sha256_repository]') do |c| + - c.with_label do + = s_('ProjectsNew|Use SHA-256 as the repository hashing algorithm') + - c.with_help_text do + = s_('ProjectsNew|Default hashing algorithm is SHA-1.') + -# this partial is from JiHu, see details in https://jihulab.com/gitlab-cn/gitlab/-/merge_requests/675 = render_if_exists 'shared/other_project_options', f: f, visibility_level: visibility_level, track_label: track_label = f.submit _('Create project'), class: "js-create-project-button", data: { testid: 'project-create-button', track_label: "#{track_label}", track_action: "click_button", track_property: "create_project", track_value: "" }, pajamas_button: true |