2018-01-09 13:36:41 +03:00
|
|
|
<section class="gh-canvas">
|
|
|
|
<header class="gh-canvas-header">
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
2018-10-04 01:08:00 +03:00
|
|
|
{{#link-to "settings.integrations"}}Integrations{{/link-to}}
|
2018-03-19 12:57:31 +03:00
|
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
2018-01-09 13:36:41 +03:00
|
|
|
Zapier
|
|
|
|
</h2>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="view-container">
|
|
|
|
<br>
|
|
|
|
<section class="app-grid">
|
|
|
|
<div class="app-cell">
|
|
|
|
<img class="app-icon" src="assets/img/zapiericon.png" />
|
|
|
|
</div>
|
|
|
|
<div class="app-cell">
|
|
|
|
<h3>Zapier</h3>
|
|
|
|
<p>Automation for your favourite apps</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2019-04-04 14:25:16 +03:00
|
|
|
{{#if config.enableDeveloperExperiments}}
|
|
|
|
<div class="m15 ba br3 b--lightgrey mt4">
|
|
|
|
<table class="ma0" style="table-layout: fixed">
|
|
|
|
<tbody>
|
|
|
|
<tr class="bb b--lightgrey">
|
|
|
|
<td class="pa3 w50 fw7">Admin API Key</td>
|
|
|
|
<td class="pa0">
|
|
|
|
<div class="pa3 relative truncate {{unless copyAdminKey.isRunning "hide-child-instant"}}">
|
|
|
|
<span class="midgrey" data-test-text="admin-key">
|
|
|
|
{{this.integration.adminKey.secret}}
|
|
|
|
</span>
|
|
|
|
<div class="absolute top-1 right-2">
|
|
|
|
<div class="pt1 pr3 pb1 pl3 bg-black-70 child br3 f8 nudge-top--4 nudge-right--1">
|
|
|
|
<button type="button" {{action (perform copyAdminKey)}} class="white fw4 flex items-center">
|
|
|
|
{{#if copyAdminKey.isRunning}}
|
|
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2"}} Copied
|
|
|
|
{{else}}
|
|
|
|
Copy
|
|
|
|
{{/if}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="pa3 w50 fw7">API URL</td>
|
|
|
|
<td class="pa0 truncate">
|
|
|
|
<div class="pa3 relative truncate {{unless copyApiUrl.isRunning "hide-child-instant"}}">
|
|
|
|
<span class="midgrey" data-test-text="api-url">
|
|
|
|
{{this.apiUrl}}
|
|
|
|
</span>
|
|
|
|
<div class="absolute top-1 right-2">
|
|
|
|
<div class="pt1 pr3 pb1 pl3 bg-black-70 child br3 f8 nudge-top--4 nudge-right--1">
|
|
|
|
<button type="button" {{action (perform copyApiUrl)}} class="white fw4 flex items-center">
|
|
|
|
{{#if copyApiUrl.isRunning}}
|
|
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2"}} Copied
|
|
|
|
{{else}}
|
|
|
|
Copy
|
|
|
|
{{/if}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2018-01-09 13:36:41 +03:00
|
|
|
<div class="gh-setting-header">Zapier configuration</div>
|
|
|
|
<div class="gh-setting" id="zapier-toggle">
|
|
|
|
<div class="gh-setting-content gh-setting-content--no-action">
|
|
|
|
<div class="gh-setting-title">Zapier Templates</div>
|
|
|
|
<div class="gh-setting-desc">Explore pre-built templates for common automation tasks</div>
|
|
|
|
<div class="gh-setting-content-extended">
|
|
|
|
<div id="zapier-templates">
|
2018-10-04 14:16:41 +03:00
|
|
|
{{!-- we don't want the script loading during tests because it errors --}}
|
|
|
|
{{#unless isTesting}}
|
|
|
|
<script src="https://zapier.com/apps/embed/widget.js?services=ghost&container=true&limit=10&html_id=zapier-templates"></script>
|
|
|
|
{{/unless}}
|
2018-01-09 13:36:41 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|