29 lines
1.0 KiB
Handlebars
29 lines
1.0 KiB
Handlebars
<div class="profile-hooks columns">
|
|
{{hook-switch hook=hook onToggleError="handleToggleError"}}
|
|
{{!-- <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="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}}
|