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

51 lines
1.4 KiB
Handlebars
Raw Normal View History

<h2>{{i18n "discourse_subscriptions.title" site_name=siteSettings.title}}</h2>
2019-12-02 02:58:14 -05:00
{{#if stripeConfigured}}
<div class="discourse-subscriptions-buttons">
{{#if campaignEnabled}}
{{d-button
label="discourse_subscriptions.campaign.refresh_campaign"
icon="sync-alt"
action=(action "triggerManualRefresh")
}}
{{else}}
{{#unless campaignProductSet}}
{{d-button
label="discourse_subscriptions.campaign.one_click_campaign"
icon="plus-square"
action=(action "createOneClickCampaign")
isLoading=loading
}}
{{/unless}}
{{/if}}
</div>
<ul class="nav nav-pills">
{{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"
}}
</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}}