summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/widget/_heading.html.haml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-21 12:15:40 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-21 12:15:40 +0200
commit630b666c8ff0a04881a694d4ef4723bf7f121a4e (patch)
tree26ce9e6eeae1597d11f804a1e90419476b313d77 /app/views/projects/merge_requests/widget/_heading.html.haml
parent955b9347a470a9c546bd1777640bfeb6104e3dd6 (diff)
downloadgitlab-ce-630b666c8ff0a04881a694d4ef4723bf7f121a4e.tar.gz
Fix project for merge_request environments
Diffstat (limited to 'app/views/projects/merge_requests/widget/_heading.html.haml')
-rw-r--r--app/views/projects/merge_requests/widget/_heading.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml
index 8b7bd7f728e..8681226ab8b 100644
--- a/app/views/projects/merge_requests/widget/_heading.html.haml
+++ b/app/views/projects/merge_requests/widget/_heading.html.haml
@@ -51,7 +51,7 @@
%span.hidden-sm
Deployed to
= succeed '.' do
- = link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment), class: 'environment'
+ = link_to environment.name, namespace_project_environment_path(environment.project.namespace, environment.project, environment), class: 'environment'
- external_url = environment.external_url
- if external_url
= link_to external_url, target: '_blank' do