2024-11-20 12:34:34 -05:00
|
|
|
<h2>{{i18n
|
|
|
|
"discourse_subscriptions.title"
|
|
|
|
site_name=this.siteSettings.title
|
|
|
|
}}</h2>
|
2019-12-02 02:58:14 -05:00
|
|
|
|
2024-11-20 12:34:34 -05:00
|
|
|
{{#if this.stripeConfigured}}
|
2021-06-02 14:15:03 -04:00
|
|
|
<div class="discourse-subscriptions-buttons">
|
2024-11-20 12:34:34 -05:00
|
|
|
{{#if this.campaignEnabled}}
|
2023-05-02 10:24:28 -04:00
|
|
|
<DButton
|
|
|
|
@label="discourse_subscriptions.campaign.refresh_campaign"
|
|
|
|
@icon="sync-alt"
|
|
|
|
@action={{action "triggerManualRefresh"}}
|
|
|
|
/>
|
2021-06-02 14:15:03 -04:00
|
|
|
{{else}}
|
2024-11-20 12:34:34 -05:00
|
|
|
{{#unless this.campaignProductSet}}
|
2023-05-02 10:24:28 -04:00
|
|
|
<DButton
|
|
|
|
@label="discourse_subscriptions.campaign.one_click_campaign"
|
|
|
|
@icon="plus-square"
|
|
|
|
@action={{action "createOneClickCampaign"}}
|
2024-11-20 12:34:34 -05:00
|
|
|
@isLoading={{this.loading}}
|
2023-05-02 10:24:28 -04:00
|
|
|
/>
|
2021-06-02 14:15:03 -04:00
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="nav nav-pills">
|
2023-05-02 10:24:28 -04:00
|
|
|
<NavItem
|
|
|
|
@route="adminPlugins.discourse-subscriptions.products"
|
|
|
|
@label="discourse_subscriptions.admin.products.title"
|
|
|
|
/>
|
|
|
|
<NavItem
|
|
|
|
@route="adminPlugins.discourse-subscriptions.coupons"
|
|
|
|
@label="discourse_subscriptions.admin.coupons.title"
|
|
|
|
/>
|
|
|
|
<NavItem
|
|
|
|
@route="adminPlugins.discourse-subscriptions.subscriptions"
|
|
|
|
@label="discourse_subscriptions.admin.subscriptions.title"
|
|
|
|
/>
|
2021-06-02 14:15:03 -04:00
|
|
|
</ul>
|
|
|
|
|
2023-01-04 07:39:58 -05:00
|
|
|
<hr />
|
2021-06-02 14:15:03 -04:00
|
|
|
|
|
|
|
<div id="discourse-subscriptions-admin">
|
|
|
|
{{outlet}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2021-07-04 15:53:55 -04:00
|
|
|
<p>{{i18n "discourse_subscriptions.admin.unconfigured"}}</p>
|
2022-06-11 06:54:30 -04:00
|
|
|
<p>
|
|
|
|
<a href="https://meta.discourse.org/t/discourse-subscriptions/140818/">
|
|
|
|
{{i18n "discourse_subscriptions.admin.on_meta"}}
|
|
|
|
</a>
|
|
|
|
</p>
|
2023-01-04 07:39:58 -05:00
|
|
|
{{/if}}
|