mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Added offers Alpha flag
This commit is contained in:
parent
4dcc594193
commit
01524cb735
3 changed files with 41 additions and 23 deletions
|
@ -55,6 +55,7 @@ export default Service.extend({
|
|||
matchHelper: feature('matchHelper'),
|
||||
multipleProducts: feature('multipleProducts'),
|
||||
membersFiltering: feature('membersFiltering', {developer: true}),
|
||||
offers: feature('offers', {developer: true}),
|
||||
oauthLogin: feature('oauthLogin', {developer: true}),
|
||||
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
|
||||
customThemeSettings: feature('customThemeSettings', {developer: true}),
|
||||
|
|
|
@ -313,6 +313,19 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
<h4 class="gh-expandable-title">Offers</h4>
|
||||
<p class="gh-expandable-description">
|
||||
Provide targeted discounts to new signups
|
||||
</p>
|
||||
</div>
|
||||
<div class="for-switch">
|
||||
<GhFeatureFlag @flag="offers" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -220,32 +220,36 @@
|
|||
{{/liquid-if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
<h4 class="gh-expandable-title">Offers</h4>
|
||||
<p class="gh-expandable-description">Manage targeted discounts</p>
|
||||
</div>
|
||||
<button type="button" class="gh-btn" {{action (toggle "offersOpen" this)}}><span>{{if this.offersOpen "Close" "Expand"}}</span></button>
|
||||
</div>
|
||||
<div class="gh-expandable-content">
|
||||
{{#liquid-if this.offersOpen}}
|
||||
<div class="gh-setting-content-extended">
|
||||
<div class="gh-main-content-card gh-offers gh-offers-list-cta">
|
||||
{{svg-jar "discount-bubble" class="discount-bubble"}}
|
||||
<h4>Provide special offers to new signups</h4>
|
||||
<p>
|
||||
Boost your subscriptions by creating targeted discounts to potential members.
|
||||
<a href="https://ghost.org/help/">Learn more</a>
|
||||
</p>
|
||||
<button type="button" class="gh-btn gh-btn-green gh-btn-icon">
|
||||
<span>{{svg-jar "add"}} Add offer</span>
|
||||
</button>
|
||||
{{#if (feature "offers")}}
|
||||
{{#if this.settings.stripeConnectAccountId}}
|
||||
<div class="gh-expandable-block">
|
||||
<div class="gh-expandable-header">
|
||||
<div>
|
||||
<h4 class="gh-expandable-title">Offers</h4>
|
||||
<p class="gh-expandable-description">Manage targeted discounts</p>
|
||||
</div>
|
||||
<button type="button" class="gh-btn" {{action (toggle "offersOpen" this)}}><span>{{if this.offersOpen "Close" "Expand"}}</span></button>
|
||||
</div>
|
||||
<div class="gh-expandable-content">
|
||||
{{#liquid-if this.offersOpen}}
|
||||
<div class="gh-setting-content-extended">
|
||||
<div class="gh-main-content-card gh-offers gh-offers-list-cta">
|
||||
{{svg-jar "discount-bubble" class="discount-bubble"}}
|
||||
<h4>Provide special offers to new signups</h4>
|
||||
<p>
|
||||
Boost your subscriptions by creating targeted discounts to potential members.
|
||||
<a href="https://ghost.org/help/" target="_blank">Learn more</a>
|
||||
</p>
|
||||
<button type="button" class="gh-btn gh-btn-green gh-btn-icon">
|
||||
<span>{{svg-jar "add"}} Add offer</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{{/liquid-if}}
|
||||
</div>
|
||||
{{/liquid-if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Reference in a new issue