Ghost/ghost/admin/app/templates/settings.hbs

122 lines
5.2 KiB
Handlebars
Raw Normal View History

<section class="gh-canvas">
<GhCanvasHeader class="gh-canvas-header">
<h2 class="gh-canvas-title" data-test-screen-title>
Settings
</h2>
</GhCanvasHeader>
2021-02-08 23:16:41 +03:00
<section class="view-container">
<div class="gh-setting-header gh-first-header">Website</div>
<div class="gh-settings-main-grid">
<LinkTo class="gh-setting-group" @route="settings.general" data-test-nav="general">
2021-03-29 17:21:54 +03:00
<span class="color-1">{{svg-jar "settings"}}</span>
<div>
<h4>General</h4>
<p>Basic publication details and site metadata</p>
</div>
</LinkTo>
<button type="button" class="gh-setting-group" {{action (toggle "showBrandingModal" this)}} data-test-nav="branding">
2021-02-11 13:45:14 +03:00
<span class="color-3">{{svg-jar "paint-palette"}}</span>
<div>
<h4>Branding</h4>
<p>Upload site logo and set accent color</p>
</div>
</button>
<LinkTo class="gh-setting-group" @route="settings.theme" data-test-nav="theme">
2021-03-29 17:21:54 +03:00
<span class="color-2">{{svg-jar "view-site"}}</span>
<div>
<h4>Theme</h4>
<p>Install and update themes</p>
</div>
</LinkTo>
<LinkTo class="gh-setting-group" @route="settings.navigation" data-test-nav="navigation">
<span class="color-4">{{svg-jar "compass-2"}}</span>
<div>
<h4>Navigation</h4>
<p>Set up primary and secondary menus</p>
</div>
</LinkTo>
</div>
<div class="gh-setting-header">Members</div>
<div class="gh-settings-main-grid">
{{#if (enable-developer-experiments)}}
<LinkTo class="gh-setting-group" @route="settings.members-access" data-test-nav="members-access">
<span class="color-3">{{svg-jar "eye"}}</span>
<div>
<h4>Access</h4>
<p>Configure members usage and default access levels</p>
</div>
</LinkTo>
<LinkTo class="gh-setting-group" @route="settings.products" data-test-nav="members-access">
<span class="color-4">{{svg-jar "module"}}</span>
<div>
<h4>Products</h4>
<p>Set up subscription products and prices</p>
</div>
</LinkTo>
{{/if}}
2021-02-11 13:45:14 +03:00
<button type="button" class="gh-setting-group portal" {{action (toggle "showPortalSettings" this)}} data-test-toggle-membersFrom>
<span class="color-2">{{svg-jar "portal-logo-stroke"}}</span>
<div>
<h4>Portal</h4>
<p>Customize members modal signup flow</p>
</div>
</button>
{{#if this.session.user.isOwner}}
<LinkTo class="gh-setting-group" @route="settings.members-email" data-test-nav="members-email">
<span class="color-1">{{svg-jar "email-stroke"}}</span>
<div>
<h4>Email newsletter</h4>
<p>Customise emails and set email addresses</p>
</div>
</LinkTo>
<LinkTo class="gh-setting-group" @route="settings.members-payments" data-test-nav="members-payments">
<span class="color-3">{{svg-jar "piggy-bank"}}</span>
<div>
<h4>Payments</h4>
<p>Connect to Stripe and set up prices</p>
</div>
</LinkTo>
{{/if}}
</div>
2021-03-02 19:41:24 +03:00
<div class="gh-setting-header">Advanced</div>
<div class="gh-settings-main-grid">
<LinkTo class="gh-setting-group" @route="settings.code-injection" data-test-nav="code-injection">
2021-03-29 17:21:54 +03:00
<span class="color-2">{{svg-jar "brackets"}}</span>
<div>
<h4>Code injection</h4>
<p>Add code to your publication</p>
</div>
</LinkTo>
<LinkTo class="gh-setting-group" @route="settings.labs" data-test-nav="labs">
<span class="color-3">{{svg-jar "labs"}}</span>
<div>
<h4>Labs</h4>
<p>Testing ground for new features</p>
</div>
</LinkTo>
</div>
</section>
</section>
{{#if this.showPortalSettings}}
<GhFullscreenModal @modal="portal-settings"
@model={{hash
openStripeSettings=(action "openStripeSettings")
}}
@close={{action "closePortalSettings"}}
@modifier="full-overlay portal-settings" />
{{/if}}
{{#if this.showBrandingModal}}
<GhFullscreenModal @modal="branding"
@close={{action "closeBrandingModal"}}
@modifier="full-overlay branding-modal" />
{{/if}}
{{#if this.showLeaveSettingsModal}}
<GhFullscreenModal @modal="leave-settings"
@confirm={{action "leavePortalSettings"}}
@close={{action "closeLeaveSettingsModal"}}
@modifier="action wide" />
{{/if}}