summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-18 12:37:50 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-18 12:38:01 +0200
commit42cbc7f813386dbf6d28868c9972ff38f01ad095 (patch)
treea7197f190298f1d73570faef88eba690f58870bb /app/views
parent02e8beaa0b83a343752ebf60e4fca4482c17f9e3 (diff)
downloadgitlab-ce-42cbc7f813386dbf6d28868c9972ff38f01ad095.tar.gz
Tweak wording.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/edit.html.haml30
1 files changed, 15 insertions, 15 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index ec58d0924b0..afbf88b5507 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -189,20 +189,20 @@
- else
.nothing-here-block Only the project owner can transfer a project
- - if @project.forked? && can?(current_user, :remove_fork_project, @project)
- = form_for([@project.namespace.becomes(Namespace), @project], url: remove_fork_namespace_project_path(@project.namespace, @project), method: :delete, remote: true, html: { class: 'transfer-project form-horizontal' }) do |f|
- .panel.panel-default.panel.panel-danger
- .panel-heading Remove fork relationship
- .panel-body
- %p
- This will remove the relationship to the source project from
- = link_to project_path(@project.forked_from_project) do
- = @project.forked_from_project.namespace.try(:name)
- %br
- %strong Once removed it cannot be reversed through this interface.
- = button_to 'Remove fork relationship', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_fork_project_message(@project) }
- - elsif @project.forked?
- .nothing-here-block Only the project owner can remove the fork relationship
+ - if @project.forked?
+ - if can?(current_user, :remove_fork_project, @project)
+ = form_for([@project.namespace.becomes(Namespace), @project], url: remove_fork_namespace_project_path(@project.namespace, @project), method: :delete, remote: true, html: { class: 'transfer-project form-horizontal' }) do |f|
+ .panel.panel-default.panel.panel-danger
+ .panel-heading Remove fork relationship
+ .panel-body
+ %p
+ This will remove the fork relationship to source project
+ #{link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)}.
+ %br
+ %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) }
+ - else
+ .nothing-here-block Only the project owner can remove the fork relationship.
- if can?(current_user, :remove_project, @project)
.panel.panel-default.panel.panel-danger
@@ -216,7 +216,7 @@
= button_to 'Remove project', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_project_message(@project) }
- else
- .nothing-here-block Only project owner can remove a project
+ .nothing-here-block Only the project owner can remove a project.
.save-project-loader.hide