mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-25 22:35:16 +00:00
* replace custom tag class with Hds::Badge * another wave of custom class replacements * remove tag class styles and cleanup * add changelog entry * fix changelog name * remove changelog entry and old styles and clean up * remove extra classes and clean up * one more clean up section * update tests * fix value check * updated test * update tests * switch to code elements with specific styling and cleanup
53 lines
1.6 KiB
Handlebars
53 lines
1.6 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<PageHeader data-test-replication-header as |p|>
|
|
<p.top>
|
|
{{#if (not (or @isSummaryDashboard @isSecondary))}}
|
|
<Hds::Breadcrumb>
|
|
<Hds::Breadcrumb::Item @text="Replication" @route="vault.cluster.replication.index" />
|
|
<Hds::Breadcrumb::Item @text={{@title}} @current={{true}} />
|
|
</Hds::Breadcrumb>
|
|
{{/if}}
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3" data-test-replication-title={{@title}}>
|
|
{{@title}}
|
|
{{#if @data.anyReplicationEnabled}}
|
|
<Hds::Badge @text={{if @isSecondary "secondary" "primary"}} data-test-mode />
|
|
{{#if @secondaryId}}
|
|
<Hds::Badge @text={{@secondaryId}} data-test-secondaryId />
|
|
{{/if}}
|
|
{{/if}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
</PageHeader>
|
|
|
|
{{#if @showTabs}}
|
|
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless has-bottom-margin-l" data-test-tabs>
|
|
<nav class="tabs">
|
|
{{#if @isSummaryDashboard}}
|
|
<ul>
|
|
<li class="is-active">
|
|
<LinkToExternal @route="replication">Summary</LinkToExternal>
|
|
</li>
|
|
</ul>
|
|
{{else}}
|
|
<ul>
|
|
<li>
|
|
<LinkTo @route="vault.cluster.replication-dr-promote.details">
|
|
Details
|
|
</LinkTo>
|
|
</li>
|
|
<li>
|
|
<LinkTo @route="vault.cluster.replication-dr-promote" @current-when="vault.cluster.replication-dr-promote.index">
|
|
Manage
|
|
</LinkTo>
|
|
</li>
|
|
</ul>
|
|
{{/if}}
|
|
</nav>
|
|
</div>
|
|
{{/if}} |