mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
d8dec01edd
refs TryGhost/Ghost#12365 Portal allows direct free signup link or data attributes, allowing members to directly share or link to only free plan in Portal popup if available - A new portal signup link for free plan - `/signup/free`
215 lines
11 KiB
Handlebars
215 lines
11 KiB
Handlebars
<div class="gh-portal-links-container">
|
|
<div class="gh-portal-links-main">
|
|
<h2>Links</h2>
|
|
<p>Use these {{if isLink "links" "data attributes"}} in your theme to show pages of Portal.</p>
|
|
<table class="gh-portal-links-table">
|
|
<tr class="header">
|
|
<td><h4>Page</h4></td>
|
|
<td>
|
|
<div class='toggle-header'>
|
|
<h4>{{sectionHeaderLabel}}</h4>
|
|
<h4 class='gh-portal-links-cell toggle' onclick={{action "toggleShowLinks"}}>{{this.toggleValue}}</h4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><hr class="gh-portal-links-group-divider first" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="pagename">Default</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal</span>
|
|
{{else}}
|
|
data-portal
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copyDefault (if isLink '#/portal' 'data-portal'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copyDefault.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><hr class="gh-portal-links-group-divider" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Sign in</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/signin</span>
|
|
{{else}}
|
|
data-portal="signin"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copySignin (if isLink '#/portal/signin' 'data-portal="signin"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copySignin.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Sign up</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/signup</span>
|
|
{{else}}
|
|
data-portal="signup"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copySignup (if isLink '#/portal/signup' 'data-portal="signup"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copySignup.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Sign up/Free</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/signup/free</span>
|
|
{{else}}
|
|
data-portal="signup/free"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copySignupFree (if isLink '#/portal/signup/free' 'data-portal="signup/free"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copySignupFree.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Sign up/Monthly</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/signup/monthly</span>
|
|
{{else}}
|
|
data-portal="signup/monthly"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copySignupMonthly (if isLink '#/portal/signup/monthly' 'data-portal="signup/monthly"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copySignupMonthly.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Sign up/Yearly</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/signup/yearly</span>
|
|
{{else}}
|
|
data-portal="signup/yearly"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copySignupYearly (if isLink '#/portal/signup/yearly' 'data-portal="signup/yearly"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copySignupYearly.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><hr class="gh-portal-links-group-divider" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Account</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/account</span>
|
|
{{else}}
|
|
data-portal="account"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copyAccountHome (if isLink '#/portal/account' 'data-portal="account"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copyAccountHome.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Account/Plans</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/account/plans</span>
|
|
{{else}}
|
|
data-portal="account/plans"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copyAccountPlans (if isLink '#/portal/account/plans' 'data-portal="account/plans"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copyAccountPlans.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='pagename'>Account/Profile</td>
|
|
<td class='page-url'>
|
|
<div class="gh-portal-page-url-container">
|
|
<div class="page-url-label">
|
|
{{#if isLink}}
|
|
<span class="page-url-disabled">{{this.siteUrl}}/</span><span>#/portal/account/profile</span>
|
|
{{else}}
|
|
data-portal="account/profile"
|
|
{{/if}}
|
|
</div>
|
|
<button type="button" {{action (perform this.copyAccountProfile (if isLink '#/portal/account/profile' 'data-portal="account/profile"'))}} class="gh-portal-setting-copy">
|
|
{{#if this.copyAccountProfile.isRunning}}
|
|
{{svg-jar "check-circle" class="w3 v-mid mr2 stroke-darkgrey"}} Copied
|
|
{{else}}
|
|
<span data-tooltip="Copy">{{svg-jar "copy" class="w4 v-mid fill-darkgrey"}}</span>
|
|
{{/if}}
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div> |