Ghost/ghost/admin/app/templates/settings/staff/user-loading.hbs
Sanne de Vries c5940ab57b Updated profile page for Authors & Contributors
No ref

- Removed breadcrumbs when profile page is loading
- Redirected Authors and Contributors to profile page when accessing /staff
2022-01-21 11:35:02 +00:00

25 lines
923 B
Handlebars

<section class="gh-canvas">
<GhCanvasHeader class="gh-canvas-header">
{{!-- Remove breadcrumbs for Authors and Contributors --}}
{{#if this.currentUser.isAuthorOrContributor}}
<h2 class="gh-canvas-title" data-test-screen-title>Your profile</h2>
{{else}}
<h2 class="gh-canvas-title" data-test-screen-title>
<LinkTo @route="settings">Settings</LinkTo>
<span>{{svg-jar "arrow-right"}}</span>
<LinkTo @route="settings.staff" data-test-staff-link={{true}}>Staff</LinkTo>
<span>{{svg-jar "arrow-right"}}</span>
{{this.user.name}}
</h2>
{{/if}}
<section class="view-actions">
<div class="gh-btn gh-btn-primary"><span>Save</span></div>
</section>
</GhCanvasHeader>
<div class="gh-content">
<GhLoadingSpinner />
</div>
</section>