travis-web/app/templates/components/build-repo-actions.hbs
Piotr Sarnacki d46c0f13ac Refactor repo actions support
This commit refactors repo-actions support to use components and make
the implementation much simpler. It also fixes a bug with buttons being
displayed when they shouldn't be.
2015-03-16 13:54:14 +01:00

21 lines
569 B
Handlebars

{{#if canCancel}}
{{#if cancelling}}
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
{{else}}
<a href="#" {{action "cancel"}} class="button-circle"
title="Cancel Build">
<span class="icon icon--cancel"></span>
</a>
{{/if}}
{{/if}}
{{#if canRestart}}
{{#if restarting}}
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
{{else}}
<a href="#" {{action "restart"}} class="button-circle" title="Restart Build">
<span class="icon icon--trigger">
</a>
{{/if}}
{{/if}}