diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-11-09 15:30:58 -0600 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-11-09 16:39:49 -0600 |
commit | 2b8292cd49dbc68b02f46f865b7115191bf2de07 (patch) | |
tree | 7cbe1e95762d39c2545920c15332c62bbe079869 /app | |
parent | d7ba85c7496fb24625f3ebf3e78af42ec23e842e (diff) | |
download | gitlab-ce-2b8292cd49dbc68b02f46f865b7115191bf2de07.tar.gz |
Finish specs for environment info
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/builds/show.html.haml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index 43c6437f9b1..488688a7d59 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -38,19 +38,14 @@ - if @build.complete? - if @build.success? - if last_deployment.try(:last?) - This build is the most recent deployment to - = environment_link_for_build(@build.project, @build) + 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(@project, last_deployment)}. - else - The deployment of this build to - = environment_link_for_build(@build.project, @build) - did not complete. + The deployment of this build to #{environment_link_for_build(@build.project, @build)} did not complete. - else - This build is creating a deployment to - = environment_link_for_build(@build.project, @build) - and will overwrite the - = link_to "latest deployment.", deployment_link(@project, last_deployment) + This build is creating a deployment to #{environment_link_for_build(@build.project, @build)} and will overwrite the | + = link_to "latest deployment.", deployment_link(@project, last_deployment) | .prepend-top-default - if @build.erased? |