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'),
|
matchHelper: feature('matchHelper'),
|
||||||
multipleProducts: feature('multipleProducts'),
|
multipleProducts: feature('multipleProducts'),
|
||||||
membersFiltering: feature('membersFiltering', {developer: true}),
|
membersFiltering: feature('membersFiltering', {developer: true}),
|
||||||
|
offers: feature('offers', {developer: true}),
|
||||||
oauthLogin: feature('oauthLogin', {developer: true}),
|
oauthLogin: feature('oauthLogin', {developer: true}),
|
||||||
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
|
emailOnlyPosts: feature('emailOnlyPosts', {developer: true}),
|
||||||
customThemeSettings: feature('customThemeSettings', {developer: true}),
|
customThemeSettings: feature('customThemeSettings', {developer: true}),
|
||||||
|
|
|
@ -313,6 +313,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -220,32 +220,36 @@
|
||||||
{{/liquid-if}}
|
{{/liquid-if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-expandable-block">
|
{{#if (feature "offers")}}
|
||||||
<div class="gh-expandable-header">
|
{{#if this.settings.stripeConnectAccountId}}
|
||||||
<div>
|
<div class="gh-expandable-block">
|
||||||
<h4 class="gh-expandable-title">Offers</h4>
|
<div class="gh-expandable-header">
|
||||||
<p class="gh-expandable-description">Manage targeted discounts</p>
|
<div>
|
||||||
</div>
|
<h4 class="gh-expandable-title">Offers</h4>
|
||||||
<button type="button" class="gh-btn" {{action (toggle "offersOpen" this)}}><span>{{if this.offersOpen "Close" "Expand"}}</span></button>
|
<p class="gh-expandable-description">Manage targeted discounts</p>
|
||||||
</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>
|
|
||||||
</div>
|
</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>
|
</div>
|
||||||
{{/liquid-if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Reference in a new issue