Ghost/ghost/admin/app/components/gh-custom-view-title.hbs
Sanne de Vries 2c498ab193 Updated breadcrumb and title style across admin
Refs https://www.notion.so/ghost/Switch-breadcrumb-style-513a624c0e0d490ca39a2fdb97a6971a

- Separating out the breadcrumbs and the title makes it easier to navigate back on multiple levels for nested pages.
- Avoids very long titles, as it doesn't include breadcrumbs anymore
2022-10-04 12:35:29 +07:00

17 lines
726 B
Handlebars

<div class="flex flex-column">
{{#if this.customViews.activeView}}
<div class="gh-canvas-breadcrumb">
<LinkTo @route={{this.router.currentRouteName}} @query={{@query}}>
{{or @title "No @title provided"}}
</LinkTo>
{{svg-jar "arrow-right-small"}} {{this.customViews.activeView.name}}
</div>
<h2 class="gh-canvas-title gh-post-title" data-test-screen-title>
{{this.customViews.activeView.name}}
</h2>
{{else}}
<h2 class="gh-canvas-title" data-test-screen-title>
<LinkTo @route={{this.router.currentRouteName}} @query={{@query}}>{{or @title "No @title provided"}}</LinkTo>
</h2>
{{/if}}
</div>