debian-mirror-gitlab/app/views/projects/edit.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

121 lines
7.1 KiB
Text
Raw Normal View History

2019-07-07 11:18:12 +05:30
- breadcrumb_title _("General Settings")
- page_title _("General")
2022-04-04 11:22:00 +05:30
- add_page_specific_style 'page_bundles/projects_edit'
2019-07-31 22:56:46 +05:30
- expanded = expanded_by_default?
2022-03-02 08:16:31 +05:30
- reduce_visibility_form_id = 'reduce-visibility-form'
2019-07-31 22:56:46 +05:30
2022-10-11 01:57:18 +05:30
= render_if_exists 'shared/ultimate_feature_removal_banner', project: @project
2023-05-27 22:25:52 +05:30
- if Feature.enabled?(:show_pages_in_deployments_menu, current_user, type: :experiment)
= render Pajamas::AlertComponent.new(variant: :info,
title: _('GitLab Pages has moved'),
alert_options: { class: 'gl-my-5', data: { feature_id: Users::CalloutsHelper::PAGES_MOVED_CALLOUT, dismiss_endpoint: callouts_path, defer_links: 'true' } }) do |c|
= c.body do
= _('To go to GitLab Pages, on the left sidebar, select %{pages_link}.').html_safe % {pages_link: link_to('Deployments > Pages', project_pages_path(@project)).html_safe}
2019-07-31 22:56:46 +05:30
%section.settings.general-settings.no-animate.expanded#js-general-settings
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Naming, topics, avatar')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= _('Collapse')
2021-02-22 17:27:13 +05:30
%p= _('Update your project name, topics, description, and avatar.')
2019-07-31 22:56:46 +05:30
.settings-content= render 'projects/settings/general'
2019-12-04 20:38:33 +05:30
%section.settings.sharing-permissions.no-animate#js-shared-permissions{ class: ('expanded' if expanded), data: { qa_selector: 'visibility_features_permissions_content' } }
2019-07-31 22:56:46 +05:30
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Visibility, project features, permissions')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand')
2021-03-11 19:13:27 +05:30
%p= _('Choose visibility level, enable/disable project features and their permissions, disable email notifications, and show default award emoji.')
2019-07-31 22:56:46 +05:30
.settings-content
2022-03-02 08:16:31 +05:30
= form_for @project, html: { multipart: true, class: "sharing-permissions-form", id: reduce_visibility_form_id }, authenticity_token: true do |f|
2019-07-31 22:56:46 +05:30
%input{ name: 'update_section', type: 'hidden', value: 'js-shared-permissions' }
2021-10-27 15:23:28 +05:30
%template.js-project-permissions-form-data{ type: "application/json" }= project_permissions_panel_data(@project).to_json.html_safe
2022-03-02 08:16:31 +05:30
.js-project-permissions-form{ data: visibility_confirm_modal_data(@project, reduce_visibility_form_id) }
2022-11-25 23:54:43 +05:30
- if show_merge_request_settings_callout?(@project)
2022-10-11 01:57:18 +05:30
%section.settings.expanded
= render Pajamas::AlertComponent.new(variant: :info,
title: _('Merge requests and approvals settings have moved.'),
alert_options: { class: 'js-merge-request-settings-callout gl-my-5', data: { feature_id: Users::CalloutsHelper::MERGE_REQUEST_SETTINGS_MOVED_CALLOUT, dismiss_endpoint: callouts_path, defer_links: 'true' } }) do |c|
= c.body do
= _('On the left sidebar, select %{merge_requests_link} to view them.').html_safe % { merge_requests_link: link_to('Settings > Merge requests', project_settings_merge_requests_path(@project)).html_safe }
2019-07-31 22:56:46 +05:30
2023-04-23 21:23:45 +05:30
= render_if_exists 'projects/settings/analytics_dashboards', expanded: expanded
2022-04-04 11:22:00 +05:30
%section.settings.no-animate{ class: ('expanded' if expanded), data: { qa_selector: 'badges_settings_content' } }
2019-07-31 22:56:46 +05:30
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
= s_('ProjectSettings|Badges')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2021-03-11 19:13:27 +05:30
= expanded ? _('Collapse') : _('Expand')
2019-07-31 22:56:46 +05:30
%p
2021-03-08 18:12:59 +05:30
= s_('ProjectSettings|Customize this project\'s badges.')
= link_to s_('ProjectSettings|What are badges?'), help_page_path('user/project/badges')
2019-07-31 22:56:46 +05:30
.settings-content
= render 'shared/badges/badge_settings'
2021-10-27 15:23:28 +05:30
= render_if_exists 'compliance_management/compliance_framework/project_settings', expanded: expanded
2019-07-31 22:56:46 +05:30
= render_if_exists 'projects/settings/default_issue_template'
2020-07-28 23:09:34 +05:30
= render 'projects/service_desk_settings'
2019-07-31 22:56:46 +05:30
2021-04-17 20:07:23 +05:30
%section.settings.advanced-settings.no-animate#js-project-advanced-settings{ class: ('expanded' if expanded), data: { qa_selector: 'advanced_settings_content' } }
2019-07-31 22:56:46 +05:30
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= _('Advanced')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand')
2022-04-04 11:22:00 +05:30
%p= s_('ProjectSettings|Housekeeping, export, archive, change path, transfer, and delete.')
2019-07-31 22:56:46 +05:30
.settings-content
2022-05-07 20:08:51 +05:30
= render_if_exists 'projects/settings/restore', project: @project
2019-07-31 22:56:46 +05:30
.sub-section
%h4= _('Housekeeping')
2021-03-11 19:13:27 +05:30
%p
= _('Runs a number of housekeeping tasks within the current repository, such as compressing file revisions and removing unreachable objects.')
= link_to _('Learn more.'), help_page_path('administration/housekeeping'), target: '_blank', rel: 'noopener noreferrer'
2021-01-03 14:25:43 +05:30
= link_to _('Run housekeeping'), housekeeping_project_path(@project),
2021-03-11 19:13:27 +05:30
method: :post, class: "btn gl-button btn-default"
2019-07-31 22:56:46 +05:30
2023-04-23 21:23:45 +05:30
.gl-display-inline-flex
#js-project-prune-unreachable-objects-button{ data: { prune_objects_path: housekeeping_project_path(@project, prune: true), prune_objects_doc_path: help_page_path('administration/housekeeping', anchor: 'prune-unreachable-objects') } }
2019-07-31 22:56:46 +05:30
= render 'export', project: @project
2020-01-01 13:55:28 +05:30
= render_if_exists 'projects/settings/archive'
2019-07-31 22:56:46 +05:30
.sub-section.rename-repository
%h4.warning-title= _('Change path')
= render 'projects/errors'
2020-10-24 23:57:45 +05:30
= form_for @project do |f|
2019-07-31 22:56:46 +05:30
.form-group
2022-08-13 15:12:31 +05:30
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/settings/index', anchor: 'rename-a-repository') }
2021-03-11 19:13:27 +05:30
%p= _("A projects repository name defines its URL (the one you use to access the project via a browser) and its place on the file disk where GitLab is installed. %{link_start}Learn more.%{link_end}").html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
%ul
%li= _("Be careful. Renaming a project's repository can have unintended side effects.")
%li= _('You will need to update your local repositories to point to the new location.')
- if @project.deployment_platform.present?
%li= _('Your deployment services will be broken, you will need to manually fix the services after renaming.')
2019-07-31 22:56:46 +05:30
= f.label :path, _('Path'), class: 'label-bold'
.form-group
.input-group
.input-group-prepend
.input-group-text
#{Gitlab::Utils.append_path(root_url, @project.namespace.full_path)}/
2021-04-17 20:07:23 +05:30
= f.text_field :path, class: 'form-control h-auto', data: { qa_selector: 'project_path_field' }
2022-06-21 17:19:12 +05:30
= f.submit _('Change path'), class: "gl-button btn btn-danger", data: { qa_selector: 'change_path_button' }
2019-07-31 22:56:46 +05:30
2021-01-29 00:20:46 +05:30
= render 'transfer', project: @project
= render 'remove_fork', project: @project
2019-07-31 22:56:46 +05:30
2020-01-01 13:55:28 +05:30
= render 'remove', project: @project
2014-09-02 18:07:02 +05:30
.save-project-loader.hide
.center
%h2
2022-05-07 20:08:51 +05:30
= gl_loading_icon(inline: true, size: 'md', css_class: 'gl-vertical-align-middle')
2019-07-31 22:56:46 +05:30
= _('Saving project.')
%p= _('Please wait a moment, this page will automatically refresh when ready.')