Gary Pendergast 5da6a06ce3
UX: Use DPageHeader on the Emails page (#30781)
There are a few changes here to make the Emails admin page more consistent with the rest of the admin UI.

- The header and navigation menu have been updated.
- The sidebar now stays highlighted when visiting the email admin sub-pages.
- Moved the Template editor from /admin/customize/email_templates to /admin/email/templates, so it fit as a sub-page.
- Removed the link to the Template editor from the Customize section of the old top menu, since it's accessible from the Emails section, instead.
2025-01-15 15:36:16 +11:00

34 lines
1.1 KiB
Handlebars

<DPageHeader
@titleLabel={{i18n "admin.email.title"}}
@descriptionLabel={{i18n "admin.email.description"}}
@shouldDisplay={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
<DBreadcrumbsItem
@path="/admin/email"
@label={{i18n "admin.email.title"}}
/>
</:breadcrumbs>
<:tabs>
<NavItem @route="adminEmail.index" @label="admin.email.settings" />
<NavItem
@route="adminEmail.previewDigest"
@label="admin.email.preview_digest"
/>
<NavItem
@route="adminEmail.advancedTest"
@label="admin.email.advanced_test.title"
/>
<NavItem @route="adminEmailTemplates" @label="admin.email.templates" />
<NavItem @route="adminEmail.sent" @label="admin.email.sent" />
<NavItem @route="adminEmail.skipped" @label="admin.email.skipped" />
<NavItem @route="adminEmail.bounced" @label="admin.email.bounced" />
<NavItem @route="adminEmail.received" @label="admin.email.received" />
<NavItem @route="adminEmail.rejected" @label="admin.email.rejected" />
</:tabs>
</DPageHeader>
<div class="admin-container">
{{outlet}}
</div>