2021-07-04 15:53:55 -04:00
|
|
|
<h2>{{i18n "discourse_subscriptions.title" site_name=siteSettings.title}}</h2>
|
2019-12-02 02:58:14 -05:00
|
|
|
|
2021-06-02 14:15:03 -04:00
|
|
|
{{#if stripeConfigured}}
|
|
|
|
<div class="discourse-subscriptions-buttons">
|
|
|
|
{{#if campaignEnabled}}
|
|
|
|
{{d-button
|
|
|
|
label="discourse_subscriptions.campaign.refresh_campaign"
|
|
|
|
icon="sync-alt"
|
2021-07-04 15:53:55 -04:00
|
|
|
action=(action "triggerManualRefresh")
|
2021-06-02 14:15:03 -04:00
|
|
|
}}
|
|
|
|
{{else}}
|
|
|
|
{{#unless campaignProductSet}}
|
|
|
|
{{d-button
|
|
|
|
label="discourse_subscriptions.campaign.one_click_campaign"
|
|
|
|
icon="plus-square"
|
2021-07-04 15:53:55 -04:00
|
|
|
action=(action "createOneClickCampaign")
|
2021-06-02 14:15:03 -04:00
|
|
|
isLoading=loading
|
|
|
|
}}
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="nav nav-pills">
|
2022-06-11 06:54:30 -04:00
|
|
|
{{nav-item
|
|
|
|
route="adminPlugins.discourse-subscriptions.products"
|
|
|
|
label="discourse_subscriptions.admin.products.title"
|
|
|
|
}}
|
|
|
|
{{nav-item
|
|
|
|
route="adminPlugins.discourse-subscriptions.coupons"
|
|
|
|
label="discourse_subscriptions.admin.coupons.title"
|
|
|
|
}}
|
|
|
|
{{nav-item
|
|
|
|
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}}
|