travis-web/app/templates/components/hooks-list-item.hbs
2015-04-23 14:31:38 +02:00

29 lines
1.1 KiB
Handlebars

<div class="profile-hooks columns">
{{hook-switch hook=hook onToggleError="handleToggleError" onToggle="resetErrors"}}
{{!-- <button class="switch is-on"></button> --}}
{{#if hook.isSaving}}
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
{{else}}
{{#link-to "settings" hook.ownerName hook.name class="profile-settings" title="Repository settings"}}<span class="icon icon--cog"></span>{{/link-to}}
{{/if}}
</div>
<a {{bind-attr href="hook.urlGithub"}} rel="nofollow" class="profile-repo columns">
{{hook.slug}}
<span>{{hook.description}}</span></a>
{{#if showError}}
<div class="hooks-error">
<p>
An error happened when we tried to alter settings on GitHub.
{{#if githubOrgsOauthAccessSettingsUrl}}
It may be caused by API restrictions, please
<a {{bind-attr href="githubOrgsOauthAccessSettingsUrl"}}
title="Orgs Oauth Access Settings on GitHub">
review and add
</a> your authorized Orgs.
{{/if}}
<a class="close" {{action "close" target=view}}></a>
</p>
</div>
{{/if}}