From ae7586c12150fe4247aa33fd4da64f831d4415ab Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Wed, 25 Feb 2015 15:39:51 +0100 Subject: [PATCH] add custom message in log --- app/styles/app/main/log.sass | 11 +++++++ app/templates/jobs/pre.hbs | 59 +++++++++++++++++++----------------- 2 files changed, 43 insertions(+), 27 deletions(-) diff --git a/app/styles/app/main/log.sass b/app/styles/app/main/log.sass index 1c017fc3..bf266c2b 100644 --- a/app/styles/app/main/log.sass +++ b/app/styles/app/main/log.sass @@ -189,3 +189,14 @@ .loading padding: 25px 0 0 10px + +.log-notice + background-color: #A6ADAD + color: $white + min-height: 70px + line-height: 35px + text-align: center + @extend %border-radius-4px + @media #{$medium-up} + height: 70px + line-height: 70px diff --git a/app/templates/jobs/pre.hbs b/app/templates/jobs/pre.hbs index 501d897c..ca8c1769 100644 --- a/app/templates/jobs/pre.hbs +++ b/app/templates/jobs/pre.hbs @@ -1,32 +1,37 @@
- - {{#if view.canRemoveLog}} - Remove Log - {{/if}} - Download Log - -
- - - - {{#if view.job.isFinished}} - Scroll to End of Log - {{else}} - Follow Log - {{/if}} - - -

+  {{#if view.job.notStarted}}
+    
Hang tight, the log cannot be shown until the build has started.
+ {{/if}} +
+ + {{#if view.canRemoveLog}} + Remove Log + {{/if}} + Download Log + +
+ + + + {{#if view.job.isFinished}} + Scroll to End of Log + {{else}} + Follow Log + {{/if}} + + +

 
-    {{#if view.log.hasContent}}
-      Top
-    {{/if}}
+      {{#if view.log.hasContent}}
+        Top
+      {{/if}}
 
-    {{#if view.limited}}
-      

- This log is too long to be displayed. Please reduce the verbosity of your - build or download the raw log. -

- {{/if}} + {{#if view.limited}} +

+ This log is too long to be displayed. Please reduce the verbosity of your + build or download the raw log. +

+ {{/if}} +