Updated tag and history breadcrumbs

Refs https://www.notion.so/ghost/Switch-breadcrumb-style-513a624c0e0d490ca39a2fdb97a6971a

- Updated the copy to follow the common breadcrumb pattern
This commit is contained in:
Sanne de Vries 2022-10-05 12:40:51 +07:00
parent ab99109bbf
commit b7fd0c04b6
2 changed files with 25 additions and 17 deletions

View File

@ -1,23 +1,31 @@
<section class="gh-canvas gh-members-activity">
<GhCanvasHeader class="gh-canvas-header">
<div class="flex flex-column">
<div class="gh-canvas-breadcrumb">
<LinkTo @route="settings">
Settings
</LinkTo>
{{#if this.userRecord}}
{{svg-jar "arrow-right-small"}}
<LinkTo @route="settings.history" @query={{reset-query-params "settings.history"}} data-test-link="history-back">
History
{{#if this.userRecord}}
<div class="gh-canvas-breadcrumb">
<LinkTo @route="settings">
Settings
</LinkTo>
{{svg-jar "arrow-right-small"}} {{or this.userRecord.name this.userRecord.email}}
{{else}}
{{svg-jar "arrow-right-small"}} History
{{/if}}
</div>
<h2 class="gh-canvas-title" data-test-screen-title>
History
</h2>
{{svg-jar "arrow-right-small"}}
<LinkTo @route="settings.history" @query={{reset-query-params "settings.history"}} data-test-link="history-back">
History
</LinkTo>
{{svg-jar "arrow-right-small"}} User
</div>
<h2 class="gh-canvas-title" data-test-screen-title>
{{or this.userRecord.name this.userRecord.email}}
</h2>
{{else}}
<div class="gh-canvas-breadcrumb">
<LinkTo @route="settings">
Settings
</LinkTo>
{{svg-jar "arrow-right-small"}} History
</div>
<h2 class="gh-canvas-title" data-test-screen-title>
History
</h2>
{{/if}}
</div>
<div class="view-actions">
<Settings::History::EventFilter

View File

@ -6,7 +6,7 @@
<LinkTo @route="tags" data-test-link="tags-back">
Tags
</LinkTo>
{{svg-jar "arrow-right-small"}} {{if this.tag.isNew "New tag" this.tag.name}}
{{svg-jar "arrow-right-small"}} {{if this.tag.isNew "New tag" "Tag"}}
</div>
<h2 class="gh-canvas-title" data-test-screen-title>
{{if this.tag.isNew "New tag" this.tag.name}}