add custom message in log
This commit is contained in:
parent
a9155287c5
commit
ae7586c121
|
@ -189,3 +189,14 @@
|
||||||
|
|
||||||
.loading
|
.loading
|
||||||
padding: 25px 0 0 10px
|
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
|
||||||
|
|
|
@ -1,32 +1,37 @@
|
||||||
<section id="log-container" class="log">
|
<section id="log-container" class="log">
|
||||||
<menu class="log-header">
|
{{#if view.job.notStarted}}
|
||||||
{{#if view.canRemoveLog}}
|
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
|
||||||
<a href="#" class="button button--grey open-popup" {{action "removeLogPopup" target=view}}><span class="icon icon--removeLog"></span> Remove Log</a>
|
{{/if}}
|
||||||
{{/if}}
|
<div {{bind-attr class="view.job.notStarted:hidden"}}>
|
||||||
<a class="button button--grey" {{bind-attr href="view.plainTextLogUrl"}}><span class="icon icon--downloadLog"></span> Download Log</a>
|
<menu class="log-header">
|
||||||
</menu>
|
{{#if view.canRemoveLog}}
|
||||||
<div class="log-body">
|
<a href="#" class="button button--grey open-popup" {{action "removeLogPopup" target=view}}><span class="icon icon--removeLog"></span> Remove Log</a>
|
||||||
<a href="#" id="tail" class="log-tail" {{action "toggleTailing" target=view}}>
|
{{/if}}
|
||||||
<span class="tail-status"></span>
|
<a class="button button--grey" {{bind-attr href="view.plainTextLogUrl"}}><span class="icon icon--downloadLog"></span> Download Log</a>
|
||||||
<span class="tail-label button button--grey"><span class="icon icon--down"></span>
|
</menu>
|
||||||
{{#if view.job.isFinished}}
|
<div class="log-body">
|
||||||
Scroll to End of Log
|
<a href="#" id="tail" class="log-tail" {{action "toggleTailing" target=view}}>
|
||||||
{{else}}
|
<span class="tail-status"></span>
|
||||||
Follow Log
|
<span class="tail-label button button--grey"><span class="icon icon--down"></span>
|
||||||
{{/if}}
|
{{#if view.job.isFinished}}
|
||||||
</span>
|
Scroll to End of Log
|
||||||
</a>
|
{{else}}
|
||||||
<pre id="log" class="ansi"></pre>
|
Follow Log
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<pre id="log" class="ainsi"></pre>
|
||||||
|
|
||||||
{{#if view.log.hasContent}}
|
{{#if view.log.hasContent}}
|
||||||
<a href='#' class="to-top" {{action "toTop" target=view}}>Top</a>
|
<a href='#' class="to-top" {{action "toTop" target=view}}>Top</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if view.limited}}
|
{{#if view.limited}}
|
||||||
<p class="warning">
|
<p class="warning">
|
||||||
This log is too long to be displayed. Please reduce the verbosity of your
|
This log is too long to be displayed. Please reduce the verbosity of your
|
||||||
build or download the <a {{bind-attr href="view.plainTextLogUrl"}}>raw log</a>.
|
build or download the <a {{bind-attr href="view.plainTextLogUrl"}}>raw log</a>.
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user