diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-12-01 14:04:35 +0000 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-12-01 14:04:35 +0000 |
commit | dffc2e31be545ba2e02a08691f182ff5f492a8a3 (patch) | |
tree | 43ca0c0cc40beaf144059dbd23115746c6ee69a3 | |
parent | 25e6e2fc73c476bdef8465975165894ac01da991 (diff) | |
download | gitlab-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.haml | 2 |
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 |