summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-12-01 14:04:35 +0000
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-12-01 14:04:35 +0000
commitdffc2e31be545ba2e02a08691f182ff5f492a8a3 (patch)
tree43ca0c0cc40beaf144059dbd23115746c6ee69a3
parent25e6e2fc73c476bdef8465975165894ac01da991 (diff)
downloadgitlab-ce-last_deployment_bug_fix.tar.gz
adds try clause on last_deployment calllast_deployment_bug_fix
-rw-r--r--app/views/projects/builds/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml
index 108674dbba6..97559bae7ad 100644
--- a/app/views/projects/builds/show.html.haml
+++ b/app/views/projects/builds/show.html.haml
@@ -40,7 +40,7 @@
This build is the most recent deployment to #{environment_link_for_build(@build.project, @build)}.
- else
This build is an out-of-date deployment to #{environment_link_for_build(@build.project, @build)}.
- View the most recent deployment #{deployment_link(environment.last_deployment)}.
+ View the most recent deployment #{deployment_link(environment.try(:last_deployment))}.
- elsif @build.complete? && !@build.success?
The deployment of this build to #{environment_link_for_build(@build.project, @build)} did not succeed.
- else