summaryrefslogtreecommitdiff
path: root/app/views/projects/edit.html.haml
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-05 19:36:12 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-05 19:36:12 +0900
commitb737282ac7fc127f6132815437bcc5a464101fd2 (patch)
tree04497e11d18fd910609fdc1af180d3e5dccca0ed /app/views/projects/edit.html.haml
parent8fb7e87806e8ae94ee40e56400625886cbcf411e (diff)
parent1d5f2f9c333534b7004501bcfa52ca873d6a3403 (diff)
downloadgitlab-ce-b737282ac7fc127f6132815437bcc5a464101fd2.tar.gz
Merge branch 'master' into refactor-clusters
Diffstat (limited to 'app/views/projects/edit.html.haml')
-rw-r--r--app/views/projects/edit.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index 5703ef1d4bb..5ebeae5c35f 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -173,7 +173,10 @@
%p
This will remove the fork relationship to source project
= succeed "." do
- = link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
+ - if @project.fork_source
+ = link_to(fork_source_name(@project), project_path(@project.fork_source))
+ - else
+ = fork_source_name(@project)
= form_for([@project.namespace.becomes(Namespace), @project], url: remove_fork_project_path(@project), method: :delete, remote: true, html: { class: 'transfer-project' }) do |f|
%p
%strong Once removed, the fork relationship cannot be restored and you will no longer be able to send merge requests to the source.