travis-web/app/templates/components/log-content.hbs
Piotr Sarnacki ee52beaa10 Fix log
After update to glimmer log started to be rendered incorrectly, with log
lines being inserted in the wrong places. I'm not sure what's the
underlying problem, but rewriting to components seems to fix the issue.
Since views are deprecated anyway I'm not going to investigate the
problem deeper.
2015-08-18 10:41:10 +02:00

56 lines
2.2 KiB
Handlebars

{{remove-log-popup job=job}}
<section id="log-container" class="log">
{{#if auth.signedIn}}
{{#if job.isLegacyInfrastructure}}
{{#if job.isFinished}}
<p class="notice"><span class="icon-flag"></span>
This job ran on our legacy infrastructure. Please read <a href="http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade" title="Migrating from legacy">our docs on how to upgrade</a></p>
{{else}}
<p class="notice"><span class="icon-flag"></span>
This job is running on our legacy infrastructure. Please read <a href="http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade" title="Migrating from legacy">our docs on how to upgrade</a></p>
{{/if}}
{{/if}}
{{/if}}
{{#if job.notStarted}}
<div class="log-notice">Hang tight, the log cannot be shown until the build has started.</div>
{{/if}}
<div class="{{if job.notStarted 'hidden'}}">
<menu class="log-header">
{{#if canRemoveLog}}
<a href="#" class="button button--grey open-popup" {{action "removeLogPopup"}}><span class="icon icon--removeLog"></span> Remove Log</a>
{{/if}}
<a class="button button--grey" href={{plainTextLogUrl}}><span class="icon icon--downloadLog"></span> Download Log</a>
</menu>
<div class="log-body">
{{#if showTailing}}
<a href="#" id="tail" class="log-tail" {{action "toggleTailing"}}>
<span class="tail-status"></span>
<span class="tail-label button button--grey"><span class="icon icon--down"></span>
{{#if job.isFinished}}
Scroll to End of Log
{{else}}
Follow Log
{{/if}}
</span>
</a>
{{/if}}
<pre id="log" class="ansi"></pre>
{{#if showToTop}}
<a href='#' class="to-top" {{action "toTop"}}>Top</a>
{{/if}}
</div>
</div>
{{#if limited}}
<p class="warning">
This log is too long to be displayed. Please reduce the verbosity of your
build or download the <a href={{plainTextLogUrl}}>raw log</a>.
</p>
{{/if}}
</section>