summaryrefslogtreecommitdiff
path: root/app/views/projects/builds
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-11-08 16:29:55 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-11-09 11:29:52 -0600
commit1a5a3be84080808554568a8c61a80cc6f3f536ed (patch)
tree186fd42de487f47c056f3992abadc97d4498e0c5 /app/views/projects/builds
parentc70acb57f5adcd4f0a19f8e7d5bcb356464a9c64 (diff)
downloadgitlab-ce-1a5a3be84080808554568a8c61a80cc6f3f536ed.tar.gz
First pass at tests
Diffstat (limited to 'app/views/projects/builds')
-rw-r--r--app/views/projects/builds/show.html.haml15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml
index 18a336c3fa3..43c6437f9b1 100644
--- a/app/views/projects/builds/show.html.haml
+++ b/app/views/projects/builds/show.html.haml
@@ -29,7 +29,10 @@
- if @build.deployable?
.prepend-top-default
.environment-information
- = ci_icon_for_status(@build.status)
+ - if @build.status == 'success' && (!@build.last_deployment.try(:last?))
+ = ci_icon_for_status('success_with_warnings')
+ - else
+ = ci_icon_for_status(@build.status)
- last_deployment = @build.last_deployment
- if @build.complete?
@@ -38,18 +41,16 @@
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)
+ 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
+ did not complete.
- else
This build is creating a deployment to
= environment_link_for_build(@build.project, @build)
- and will overwrite the latest deployment
+ and will overwrite the
+ = link_to "latest deployment.", deployment_link(@project, last_deployment)
.prepend-top-default
- if @build.erased?