34060 Simply general project settings to use expanded panels
This commit is contained in:
parent
48c51e207e
commit
aaaa252e30
5 changed files with 202 additions and 190 deletions
|
@ -329,6 +329,8 @@ import GpgBadges from './gpg_badges';
|
||||||
break;
|
break;
|
||||||
case 'projects:edit':
|
case 'projects:edit':
|
||||||
setupProjectEdit();
|
setupProjectEdit();
|
||||||
|
// Initialize expandable settings panels
|
||||||
|
initSettingsPanels();
|
||||||
break;
|
break;
|
||||||
case 'projects:pipelines:builds':
|
case 'projects:pipelines:builds':
|
||||||
case 'projects:pipelines:failures':
|
case 'projects:pipelines:failures':
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
background: transparent;
|
|
||||||
transition: background 2s ease-out;
|
transition: background 2s ease-out;
|
||||||
|
|
||||||
&.highlight-changes {
|
&.highlight-changes {
|
||||||
|
|
|
@ -54,8 +54,7 @@
|
||||||
.settings-content {
|
.settings-content {
|
||||||
max-height: 1px;
|
max-height: 1px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
margin-right: -20px;
|
padding-right: 110px;
|
||||||
padding-right: 130px;
|
|
||||||
animation: collapseMaxHeight 300ms ease-out;
|
animation: collapseMaxHeight 300ms ease-out;
|
||||||
|
|
||||||
&.expanded {
|
&.expanded {
|
||||||
|
@ -87,6 +86,18 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sub-section {
|
||||||
|
margin-bottom: 32px;
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid $border-color;
|
||||||
|
background-color: $gray-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bs-callout,
|
||||||
|
.checkbox:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-list-icon {
|
.settings-list-icon {
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
- form = local_assigns.fetch(:form)
|
- form = local_assigns.fetch(:form)
|
||||||
|
|
||||||
%fieldset.features.merge-requests-feature.append-bottom-default
|
= render 'projects/merge_request_merge_settings', form: form
|
||||||
%hr
|
|
||||||
%h5.prepend-top-0
|
|
||||||
Merge Requests
|
|
||||||
|
|
||||||
= render 'projects/merge_request_merge_settings', form: form
|
|
|
@ -1,13 +1,19 @@
|
||||||
|
- page_title "General"
|
||||||
- @content_class = "limit-container-width" unless fluid_layout
|
- @content_class = "limit-container-width" unless fluid_layout
|
||||||
|
- expanded = Rails.env.test?
|
||||||
|
|
||||||
= render "projects/settings/head"
|
= render "projects/settings/head"
|
||||||
.project-edit-container
|
|
||||||
.row.prepend-top-default
|
%section.settings.general-settings
|
||||||
.col-lg-4.profile-settings-sidebar
|
.settings-header
|
||||||
%h4.prepend-top-0
|
%h4
|
||||||
Project settings
|
General project settings
|
||||||
.col-lg-8
|
%button.btn.js-settings-toggle
|
||||||
.project-edit-errors
|
= expanded ? 'Collapse' : 'Expand'
|
||||||
|
%p
|
||||||
|
Update your project name, description, avatar, and other general settings.
|
||||||
|
.settings-content.no-animate{ class: ('expanded' if expanded) }
|
||||||
|
.project-edit-errors
|
||||||
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "edit-project" }, authenticity_token: true do |f|
|
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "edit-project" }, authenticity_token: true do |f|
|
||||||
%fieldset
|
%fieldset
|
||||||
.row
|
.row
|
||||||
|
@ -35,89 +41,7 @@
|
||||||
= f.label :tag_list, "Tags", class: 'label-light'
|
= f.label :tag_list, "Tags", class: 'label-light'
|
||||||
= f.text_field :tag_list, value: @project.tag_list.sort.join(', '), maxlength: 2000, class: "form-control"
|
= f.text_field :tag_list, value: @project.tag_list.sort.join(', '), maxlength: 2000, class: "form-control"
|
||||||
%p.help-block Separate tags with commas.
|
%p.help-block Separate tags with commas.
|
||||||
%hr
|
%fieldset.features
|
||||||
%fieldset
|
|
||||||
%h5.prepend-top-0
|
|
||||||
Sharing & Permissions
|
|
||||||
.form_group.prepend-top-20.sharing-and-permissions
|
|
||||||
.row.js-visibility-select
|
|
||||||
.col-md-8
|
|
||||||
.label-light
|
|
||||||
= label_tag :project_visibility, 'Project Visibility', class: 'label-light', for: :project_visibility_level
|
|
||||||
= link_to icon('question-circle'), help_page_path("public_access/public_access")
|
|
||||||
%span.help-block
|
|
||||||
.col-md-4.visibility-select-container
|
|
||||||
= render('projects/visibility_select', model_method: :visibility_level, form: f, selected_level: @project.visibility_level)
|
|
||||||
= f.fields_for :project_feature do |feature_fields|
|
|
||||||
%fieldset.features
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature
|
|
||||||
= feature_fields.label :repository_access_level, "Repository", class: 'label-light'
|
|
||||||
%span.help-block View and edit files in this project
|
|
||||||
.col-md-4.js-repo-access-level
|
|
||||||
= project_feature_access_select(:repository_access_level)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature.nested
|
|
||||||
= feature_fields.label :merge_requests_access_level, "Merge requests", class: 'label-light'
|
|
||||||
%span.help-block Submit changes to be merged upstream
|
|
||||||
.col-md-4
|
|
||||||
= project_feature_access_select(:merge_requests_access_level)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature.nested
|
|
||||||
= feature_fields.label :builds_access_level, "Pipelines", class: 'label-light'
|
|
||||||
%span.help-block Build, test, and deploy your changes
|
|
||||||
.col-md-4
|
|
||||||
= project_feature_access_select(:builds_access_level)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature
|
|
||||||
= feature_fields.label :snippets_access_level, "Snippets", class: 'label-light'
|
|
||||||
%span.help-block Share code pastes with others out of Git repository
|
|
||||||
.col-md-4
|
|
||||||
= project_feature_access_select(:snippets_access_level)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature
|
|
||||||
= feature_fields.label :issues_access_level, "Issues", class: 'label-light'
|
|
||||||
%span.help-block Lightweight issue tracking system for this project
|
|
||||||
.col-md-4
|
|
||||||
= project_feature_access_select(:issues_access_level)
|
|
||||||
|
|
||||||
.row
|
|
||||||
.col-md-8.project-feature
|
|
||||||
= feature_fields.label :wiki_access_level, "Wiki", class: 'label-light'
|
|
||||||
%span.help-block Pages for project documentation
|
|
||||||
.col-md-4
|
|
||||||
= project_feature_access_select(:wiki_access_level)
|
|
||||||
.form-group
|
|
||||||
= render 'shared/allow_request_access', form: f
|
|
||||||
- if Gitlab.config.lfs.enabled && current_user.admin?
|
|
||||||
.row.js-lfs-enabled
|
|
||||||
.col-md-8
|
|
||||||
= f.label :lfs_enabled, 'LFS', class: 'label-light'
|
|
||||||
%span.help-block
|
|
||||||
Git Large File Storage
|
|
||||||
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
|
||||||
.col-md-4
|
|
||||||
.select-wrapper
|
|
||||||
= f.select :lfs_enabled, [%w(Enabled true), %w(Disabled false)], {}, selected: @project.lfs_enabled?, class: 'pull-right form-control project-repo-select select-control', data: { field: 'lfs_enabled' }
|
|
||||||
= icon('chevron-down')
|
|
||||||
- if Gitlab.config.registry.enabled
|
|
||||||
.form-group.js-container-registry{ style: ("display: none;" if @project.project_feature.send(:repository_access_level) == 0) }
|
|
||||||
.checkbox
|
|
||||||
= f.label :container_registry_enabled do
|
|
||||||
= f.check_box :container_registry_enabled
|
|
||||||
%strong Container Registry
|
|
||||||
%br
|
|
||||||
%span.descr Enable Container Registry for this project
|
|
||||||
= link_to icon('question-circle'), help_page_path('user/project/container_registry'), target: '_blank'
|
|
||||||
|
|
||||||
= render 'merge_request_settings', form: f
|
|
||||||
|
|
||||||
%hr
|
|
||||||
%fieldset.features.append-bottom-default
|
|
||||||
%h5.prepend-top-0
|
%h5.prepend-top-0
|
||||||
Project avatar
|
Project avatar
|
||||||
.form-group
|
.form-group
|
||||||
|
@ -137,91 +61,183 @@
|
||||||
= link_to 'Remove avatar', project_avatar_path(@project), data: { confirm: "Project avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
|
= link_to 'Remove avatar', project_avatar_path(@project), data: { confirm: "Project avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
|
||||||
= f.submit 'Save changes', class: "btn btn-save"
|
= f.submit 'Save changes', class: "btn btn-save"
|
||||||
|
|
||||||
.row.prepend-top-default
|
%section.settings.sharing-permissions
|
||||||
%hr
|
.settings-header
|
||||||
.row.prepend-top-default
|
%h4
|
||||||
.col-lg-4
|
Sharing and permissions
|
||||||
%h4.prepend-top-0
|
%button.btn.js-settings-toggle
|
||||||
Housekeeping
|
= expanded ? 'Collapse' : 'Expand'
|
||||||
|
%p
|
||||||
|
Enable or disable certain project features and choose access levels.
|
||||||
|
.settings-content.no-animate{ class: ('expaneded' if expanded) }
|
||||||
|
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "sharing-permissions-form" }, authenticity_token: true do |f|
|
||||||
|
.form_group.sharing-and-permissions
|
||||||
|
.row.js-visibility-select
|
||||||
|
.col-md-8
|
||||||
|
.label-light
|
||||||
|
= label_tag :project_visibility, 'Project Visibility', class: 'label-light', for: :project_visibility_level
|
||||||
|
= link_to icon('question-circle'), help_page_path("public_access/public_access")
|
||||||
|
%span.help-block
|
||||||
|
.col-md-4.visibility-select-container
|
||||||
|
= render('projects/visibility_select', model_method: :visibility_level, form: f, selected_level: @project.visibility_level)
|
||||||
|
= f.fields_for :project_feature do |feature_fields|
|
||||||
|
%fieldset.features
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature
|
||||||
|
= feature_fields.label :repository_access_level, "Repository", class: 'label-light'
|
||||||
|
%span.help-block View and edit files in this project
|
||||||
|
.col-md-4.js-repo-access-level
|
||||||
|
= project_feature_access_select(:repository_access_level)
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature.nested
|
||||||
|
= feature_fields.label :merge_requests_access_level, "Merge requests", class: 'label-light'
|
||||||
|
%span.help-block Submit changes to be merged upstream
|
||||||
|
.col-md-4
|
||||||
|
= project_feature_access_select(:merge_requests_access_level)
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature.nested
|
||||||
|
= feature_fields.label :builds_access_level, "Pipelines", class: 'label-light'
|
||||||
|
%span.help-block Build, test, and deploy your changes
|
||||||
|
.col-md-4
|
||||||
|
= project_feature_access_select(:builds_access_level)
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature
|
||||||
|
= feature_fields.label :snippets_access_level, "Snippets", class: 'label-light'
|
||||||
|
%span.help-block Share code pastes with others out of Git repository
|
||||||
|
.col-md-4
|
||||||
|
= project_feature_access_select(:snippets_access_level)
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature
|
||||||
|
= feature_fields.label :issues_access_level, "Issues", class: 'label-light'
|
||||||
|
%span.help-block Lightweight issue tracking system for this project
|
||||||
|
.col-md-4
|
||||||
|
= project_feature_access_select(:issues_access_level)
|
||||||
|
|
||||||
|
.row
|
||||||
|
.col-md-8.project-feature
|
||||||
|
= feature_fields.label :wiki_access_level, "Wiki", class: 'label-light'
|
||||||
|
%span.help-block Pages for project documentation
|
||||||
|
.col-md-4
|
||||||
|
= project_feature_access_select(:wiki_access_level)
|
||||||
|
.form-group
|
||||||
|
= render 'shared/allow_request_access', form: f
|
||||||
|
- if Gitlab.config.lfs.enabled && current_user.admin?
|
||||||
|
.row.js-lfs-enabled.form-group.sharing-and-permissions
|
||||||
|
.col-md-8
|
||||||
|
= f.label :lfs_enabled, 'Git Large File Storage', class: 'label-light'
|
||||||
|
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
||||||
|
%span.help-block Manages large files such as audio, video and graphics files.
|
||||||
|
.col-md-4
|
||||||
|
.select-wrapper
|
||||||
|
= f.select :lfs_enabled, [%w(Enabled true), %w(Disabled false)], {}, selected: @project.lfs_enabled?, class: 'pull-right form-control project-repo-select select-control', data: { field: 'lfs_enabled' }
|
||||||
|
= icon('chevron-down')
|
||||||
|
- if Gitlab.config.registry.enabled
|
||||||
|
.form-group.js-container-registry{ style: ("display: none;" if @project.project_feature.send(:repository_access_level) == 0) }
|
||||||
|
.checkbox
|
||||||
|
= f.label :container_registry_enabled do
|
||||||
|
= f.check_box :container_registry_enabled
|
||||||
|
%strong Container Registry
|
||||||
|
%br
|
||||||
|
%span.descr Enable Container Registry for this project
|
||||||
|
= link_to icon('question-circle'), help_page_path('user/project/container_registry'), target: '_blank'
|
||||||
|
= f.submit 'Save changes', class: "btn btn-save"
|
||||||
|
|
||||||
|
|
||||||
|
%section.settings.merge-request-settings{ style: ("display: none;" if @project.project_feature.send(:merge_requests_access_level) == 0) }
|
||||||
|
.settings-header
|
||||||
|
%h4
|
||||||
|
Merge request settings
|
||||||
|
%button.btn.js-settings-toggle
|
||||||
|
= expanded ? 'Collapse' : 'Expand'
|
||||||
|
%p
|
||||||
|
Customize your merge request restrictions.
|
||||||
|
.settings-content.no-animate{ class: ('expanded' if expanded) }
|
||||||
|
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "merge-request-settings" }, authenticity_token: true do |f|
|
||||||
|
= render 'merge_request_settings', form: f
|
||||||
|
= f.submit 'Save changes', class: "btn btn-save"
|
||||||
|
|
||||||
|
%section.settings
|
||||||
|
.settings-header
|
||||||
|
%h4
|
||||||
|
Export project
|
||||||
|
%button.btn.js-settings-toggle
|
||||||
|
= expanded ? 'Collapse' : 'Expand'
|
||||||
|
%p
|
||||||
|
Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.
|
||||||
|
.settings-content.no-animate{ class: ('expanded' if expanded) }
|
||||||
|
.bs-callout.bs-callout-info
|
||||||
%p.append-bottom-0
|
%p.append-bottom-0
|
||||||
%p
|
%p
|
||||||
Runs a number of housekeeping tasks within the current repository,
|
The following items will be exported:
|
||||||
such as compressing file revisions and removing unreachable objects.
|
%ul
|
||||||
.col-lg-8
|
%li Project and wiki repositories
|
||||||
|
%li Project uploads
|
||||||
|
%li Project configuration including web hooks and services
|
||||||
|
%li Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
|
||||||
|
%p
|
||||||
|
The following items will NOT be exported:
|
||||||
|
%ul
|
||||||
|
%li Job traces and artifacts
|
||||||
|
%li LFS objects
|
||||||
|
%li Container registry images
|
||||||
|
%li CI variables
|
||||||
|
%li Any encrypted tokens
|
||||||
|
%p
|
||||||
|
Once the exported file is ready, you will receive a notification email with a download link.
|
||||||
|
- if @project.export_project_path
|
||||||
|
= link_to 'Download export', download_export_project_path(@project),
|
||||||
|
rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
|
||||||
|
= link_to 'Generate new export', generate_new_export_project_path(@project),
|
||||||
|
method: :post, class: "btn btn-default"
|
||||||
|
- else
|
||||||
|
= link_to 'Export project', export_project_path(@project),
|
||||||
|
method: :post, class: "btn btn-default"
|
||||||
|
|
||||||
|
%section.settings.advanced-settings
|
||||||
|
.settings-header
|
||||||
|
%h4
|
||||||
|
Advanced settings
|
||||||
|
%button.btn.js-settings-toggle
|
||||||
|
= expanded ? 'Collapse' : 'Expand'
|
||||||
|
%p
|
||||||
|
Perform advanced options such as housekeeping, exporting, archiveing, renameing, transfering, or removeing your project.
|
||||||
|
.settings-content.no-animate{ class: ('expanded' if expanded) }
|
||||||
|
.sub-section
|
||||||
|
%h4 Housekeeping
|
||||||
|
%p
|
||||||
|
Runs a number of housekeeping tasks within the current repository, such as compressing file revisions and removing unreachable objects.
|
||||||
= link_to 'Housekeeping', housekeeping_project_path(@project),
|
= link_to 'Housekeeping', housekeeping_project_path(@project),
|
||||||
method: :post, class: "btn btn-default"
|
method: :post, class: "btn btn-default"
|
||||||
%hr
|
- if can? current_user, :archive_project, @project
|
||||||
.row.prepend-top-default
|
.sub-section
|
||||||
.col-lg-4
|
%h4.warning-title
|
||||||
%h4.prepend-top-0
|
|
||||||
Export project
|
|
||||||
%p.append-bottom-0
|
|
||||||
%p
|
|
||||||
Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.
|
|
||||||
%p
|
|
||||||
Once the exported file is ready, you will receive a notification email with a download link.
|
|
||||||
|
|
||||||
.col-lg-8
|
|
||||||
|
|
||||||
- if @project.export_project_path
|
|
||||||
= link_to 'Download export', download_export_project_path(@project),
|
|
||||||
rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
|
|
||||||
= link_to 'Generate new export', generate_new_export_project_path(@project),
|
|
||||||
method: :post, class: "btn btn-default"
|
|
||||||
- else
|
|
||||||
= link_to 'Export project', export_project_path(@project),
|
|
||||||
method: :post, class: "btn btn-default"
|
|
||||||
|
|
||||||
.bs-callout.bs-callout-info
|
|
||||||
%p.append-bottom-0
|
|
||||||
%p
|
|
||||||
The following items will be exported:
|
|
||||||
%ul
|
|
||||||
%li Project and wiki repositories
|
|
||||||
%li Project uploads
|
|
||||||
%li Project configuration including web hooks and services
|
|
||||||
%li Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
|
|
||||||
%p
|
|
||||||
The following items will NOT be exported:
|
|
||||||
%ul
|
|
||||||
%li Job traces and artifacts
|
|
||||||
%li LFS objects
|
|
||||||
%li Container registry images
|
|
||||||
%li CI variables
|
|
||||||
%li Any encrypted tokens
|
|
||||||
- if can? current_user, :archive_project, @project
|
|
||||||
%hr
|
|
||||||
.row.prepend-top-default
|
|
||||||
.col-lg-4
|
|
||||||
%h4.warning-title.prepend-top-0
|
|
||||||
- if @project.archived?
|
- if @project.archived?
|
||||||
Unarchive project
|
Unarchive project
|
||||||
- else
|
- else
|
||||||
Archive project
|
Archive project
|
||||||
%p.append-bottom-0
|
|
||||||
- if @project.archived?
|
|
||||||
Unarchiving the project will mark its repository as active. The project can be committed to.
|
|
||||||
- else
|
|
||||||
Archiving the project will mark its repository as read-only. It is hidden from the dashboard and doesn't show up in searches.
|
|
||||||
.col-lg-8
|
|
||||||
- if @project.archived?
|
- if @project.archived?
|
||||||
%p
|
%p
|
||||||
|
Unarchiving the project will mark its repository as active. The project can be committed to.
|
||||||
%strong Once active this project shows up in the search and on the dashboard.
|
%strong Once active this project shows up in the search and on the dashboard.
|
||||||
= link_to 'Unarchive project', unarchive_project_path(@project),
|
= link_to 'Unarchive project', unarchive_project_path(@project),
|
||||||
data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be committed to again." },
|
data: { confirm: "Are you sure that you want to unarchive this project?\nWhen this project is unarchived it is active and can be committed to again." },
|
||||||
method: :post, class: "btn btn-success"
|
method: :post, class: "btn btn-success"
|
||||||
- else
|
- else
|
||||||
%p
|
%p
|
||||||
|
Archiving the project will mark its repository as read-only. It is hidden from the dashboard and doesn't show up in searches.
|
||||||
%strong Archived projects cannot be committed to!
|
%strong Archived projects cannot be committed to!
|
||||||
= link_to 'Archive project', archive_project_path(@project),
|
= link_to 'Archive project', archive_project_path(@project),
|
||||||
data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." },
|
data: { confirm: "Are you sure that you want to archive this project?\nAn archived project cannot be committed to." },
|
||||||
method: :post, class: "btn btn-warning"
|
method: :post, class: "btn btn-warning"
|
||||||
%hr
|
.sub-section.rename-respository
|
||||||
.row.prepend-top-default
|
%h4.warning-title
|
||||||
.col-lg-4
|
|
||||||
%h4.prepend-top-0.warning-title
|
|
||||||
Rename repository
|
Rename repository
|
||||||
.col-lg-8
|
%p
|
||||||
|
Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.
|
||||||
= render 'projects/errors'
|
= render 'projects/errors'
|
||||||
= form_for([@project.namespace.becomes(Namespace), @project]) do |f|
|
= form_for([@project.namespace.becomes(Namespace), @project]) do |f|
|
||||||
.form-group.project_name_holder
|
.form-group.project_name_holder
|
||||||
|
@ -243,15 +259,11 @@
|
||||||
- if @project.deployment_services.any?
|
- if @project.deployment_services.any?
|
||||||
%li Your deployment services will be broken, you will need to manually fix the services after renaming.
|
%li Your deployment services will be broken, you will need to manually fix the services after renaming.
|
||||||
= f.submit 'Rename project', class: "btn btn-warning"
|
= f.submit 'Rename project', class: "btn btn-warning"
|
||||||
- if can?(current_user, :change_namespace, @project)
|
|
||||||
%hr
|
- if can?(current_user, :change_namespace, @project)
|
||||||
.row.prepend-top-default
|
.sub-section
|
||||||
.col-lg-4
|
%h4.danger-title
|
||||||
%h4.prepend-top-0.danger-title
|
Transfer project
|
||||||
Transfer project to new group
|
|
||||||
%p.append-bottom-0
|
|
||||||
Please select the group you want to transfer this project to in the dropdown to the right.
|
|
||||||
.col-lg-8
|
|
||||||
= form_for([@project.namespace.becomes(Namespace), @project], url: transfer_project_path(@project), method: :put, remote: true, html: { class: 'js-project-transfer-form' } ) do |f|
|
= form_for([@project.namespace.becomes(Namespace), @project], url: transfer_project_path(@project), method: :put, remote: true, html: { class: 'js-project-transfer-form' } ) do |f|
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :new_namespace_id, nil, class: 'label-light' do
|
= label_tag :new_namespace_id, nil, class: 'label-light' do
|
||||||
|
@ -264,31 +276,24 @@
|
||||||
%li You will need to update your local repositories to point to the new location.
|
%li You will need to update your local repositories to point to the new location.
|
||||||
%li Project visibility level will be changed to match namespace rules when transfering to a group.
|
%li Project visibility level will be changed to match namespace rules when transfering to a group.
|
||||||
= f.submit 'Transfer project', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => transfer_project_message(@project) }
|
= f.submit 'Transfer project', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => transfer_project_message(@project) }
|
||||||
- if @project.forked? && can?(current_user, :remove_fork_project, @project)
|
- if @project.forked? && can?(current_user, :remove_fork_project, @project)
|
||||||
%hr
|
.sub-section
|
||||||
.row.prepend-top-default.append-bottom-default
|
%h4.danger-title
|
||||||
.col-lg-4
|
|
||||||
%h4.prepend-top-0.danger-title
|
|
||||||
Remove fork relationship
|
Remove fork relationship
|
||||||
%p.append-bottom-0
|
%p
|
||||||
%p
|
This will remove the fork relationship to source project
|
||||||
This will remove the fork relationship to source project
|
= succeed "." do
|
||||||
= succeed "." do
|
= link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
|
||||||
= link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
|
|
||||||
.col-lg-8
|
|
||||||
= form_for([@project.namespace.becomes(Namespace), @project], url: remove_fork_project_path(@project), method: :delete, remote: true, html: { class: 'transfer-project' }) do |f|
|
= form_for([@project.namespace.becomes(Namespace), @project], url: remove_fork_project_path(@project), method: :delete, remote: true, html: { class: 'transfer-project' }) do |f|
|
||||||
%p
|
%p
|
||||||
%strong Once removed, the fork relationship cannot be restored and you will no longer be able to send merge requests to the source.
|
%strong Once removed, the fork relationship cannot be restored and you will no longer be able to send merge requests to the source.
|
||||||
= button_to 'Remove fork relationship', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_fork_project_message(@project) }
|
= button_to 'Remove fork relationship', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_fork_project_message(@project) }
|
||||||
- if can?(current_user, :remove_project, @project)
|
- if can?(current_user, :remove_project, @project)
|
||||||
%hr
|
.sub-section
|
||||||
.row.prepend-top-default.append-bottom-default
|
%h4.danger-title
|
||||||
.col-lg-4
|
|
||||||
%h4.prepend-top-0.danger-title
|
|
||||||
Remove project
|
Remove project
|
||||||
%p.append-bottom-0
|
%p
|
||||||
Removing the project will delete its repository and all related resources including issues, merge requests etc.
|
Removing the project will delete its repository and all related resources including issues, merge requests etc.
|
||||||
.col-lg-8
|
|
||||||
= form_tag(project_path(@project), method: :delete) do
|
= form_tag(project_path(@project), method: :delete) do
|
||||||
%p
|
%p
|
||||||
%strong Removed projects cannot be restored!
|
%strong Removed projects cannot be restored!
|
||||||
|
|
Loading…
Reference in a new issue