discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscript...

53 lines
1.4 KiB
Handlebars
Raw Normal View History

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}}
<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"}}
/>
{{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
/>
{{/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"
/>
</ul>
<hr />
<div id="discourse-subscriptions-admin">
{{outlet}}
</div>
{{else}}
<p>{{i18n "discourse_subscriptions.admin.unconfigured"}}</p>
<p>
<a href="https://meta.discourse.org/t/discourse-subscriptions/140818/">
{{i18n "discourse_subscriptions.admin.on_meta"}}
</a>
</p>
{{/if}}