add custom message in log

This commit is contained in:
Lisa Passing 2015-02-25 15:39:51 +01:00
parent a9155287c5
commit ae7586c121
2 changed files with 43 additions and 27 deletions

View File

@ -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

View File

@ -1,4 +1,8 @@
<section id="log-container" class="log">
{{#if view.job.notStarted}}
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
{{/if}}
<div {{bind-attr class="view.job.notStarted:hidden"}}>
<menu class="log-header">
{{#if view.canRemoveLog}}
<a href="#" class="button button--grey open-popup" {{action "removeLogPopup" target=view}}><span class="icon icon--removeLog"></span> Remove Log</a>
@ -16,7 +20,7 @@
{{/if}}
</span>
</a>
<pre id="log" class="ansi"></pre>
<pre id="log" class="ainsi"></pre>
{{#if view.log.hasContent}}
<a href='#' class="to-top" {{action "toTop" target=view}}>Top</a>
@ -29,4 +33,5 @@
</p>
{{/if}}
</div>
</div>
</section>