From 00304798a62746bcdbca98d4310462712a89d54e Mon Sep 17 00:00:00 2001
From: Lisa P
Date: Fri, 27 Nov 2015 16:55:01 +0100
Subject: [PATCH] add notice for gce builds
---
app/models/job.coffee | 4 ++++
app/styles/app/modules/notice.sass | 29 +++++++++++++++++++++---
app/templates/components/log-content.hbs | 10 ++++++++
3 files changed, 40 insertions(+), 3 deletions(-)
diff --git a/app/models/job.coffee b/app/models/job.coffee
index 151eda76..fdf3357c 100644
--- a/app/models/job.coffee
+++ b/app/models/job.coffee
@@ -148,4 +148,8 @@ Job = Model.extend DurationCalculations,
true
).property('queue')
+ isGce: (->
+ if @get('queue') == 'builds.gce' then true else false
+ ).property('queue')
+
`export default Job`
diff --git a/app/styles/app/modules/notice.sass b/app/styles/app/modules/notice.sass
index 0bb6b34f..1b9ead64 100644
--- a/app/styles/app/modules/notice.sass
+++ b/app/styles/app/modules/notice.sass
@@ -3,14 +3,37 @@
margin-bottom: .5em
background-color: #F9F3D3
color: #AF9112
- border-radius: 4px
+ border-radius: 2px
a
color: #AF9112
text-decoration: underline
-
.icon-flag
@extend %icon
width: 1.3em
height: 1.5em
margin: 0 .6em 0 .2em
- vertical-align: middle
\ No newline at end of file
+ vertical-align: middle
+
+.notice--blue
+ padding: 0.3em 0.5em 0.3em
+ margin-bottom: .5em
+ background-color: #d2f5f9
+ color: #40a3ad
+ border-radius: 2px
+ a
+ color: #40a3ad
+ text-decoration: underline
+
+ .icon-flag
+ display: inline-block
+ background:
+ image: url('data:image/svg+xml;utf8,')
+ color: #40a3ad
+ size: auto 13px
+ position: 6px 4px
+ repeat: no-repeat
+ width: 1.2em
+ height: 1.2em
+ border-radius: 50%
+ margin: 0 .2em 0 0
+ vertical-align: middle
diff --git a/app/templates/components/log-content.hbs b/app/templates/components/log-content.hbs
index 27048e2f..459449d0 100644
--- a/app/templates/components/log-content.hbs
+++ b/app/templates/components/log-content.hbs
@@ -12,6 +12,16 @@
This job is running on our legacy infrastructure. Please read our docs on how to upgrade
{{/if}}
{{/if}}
+
+ {{#if job.isGce}}
+ {{#if job.isFinished}}
+
+ This job ran on our new platform for Legacy Precise builds. Please read our blog post for more information.
+ {{else}}
+
+ This job is running on our new platform for Legacy Precise builds. Please read our blog post for more information.
+ {{/if}}
+ {{/if}}
{{/if}}
{{#if job.notStarted}}