966c7dbf02
New look for the navbar and new functionality on mobile. Also includes new look for the mounts list and headers in secret engines.
45 lines
1.3 KiB
Handlebars
45 lines
1.3 KiB
Handlebars
<div class="level is-mobile">
|
|
<div class="level-left is-flex-1">
|
|
{{#if replicationUnsupported}}
|
|
Unsupported
|
|
{{else if replicationEnabled}}
|
|
<span>
|
|
{{capitalize modeForUrl}}
|
|
</span>
|
|
{{#if secondaryId}}
|
|
<small>
|
|
<code>
|
|
{{secondaryId}}
|
|
</code>
|
|
</small>
|
|
{{/if}}
|
|
<small>
|
|
<code>
|
|
{{clusterIdDisplay}}
|
|
</code>
|
|
</small>
|
|
{{else if (and (eq mode 'performance') (not version.hasPerfReplication))}}
|
|
Learn More
|
|
{{else if auth.currentToken}}
|
|
Enable {{if (eq mode 'performance') 'Performance' 'DR'}}
|
|
{{else}}
|
|
Not Enabled
|
|
{{/if}}
|
|
</div>
|
|
<div class="level-right">
|
|
{{#if replicationEnabled}}
|
|
{{#if (get cluster (concat mode 'StateGlyph'))}}
|
|
<span class="has-text-success">
|
|
{{i-con size=16 glyph=(get cluster (concat mode 'StateGlyph'))}}
|
|
</span>
|
|
{{else if syncProgress}}
|
|
<progress value="{{syncProgressPercent}}" max="100" class="progress is-small is-narrow is-info">
|
|
{{syncProgress.progress}} of {{syncProgress.total}} keys
|
|
</progress>
|
|
{{/if}}
|
|
{{else}}
|
|
<ICon @glyph="neutral-circled-outline" @size="16" @class="has-text-grey-light" />
|
|
{{/if}}
|
|
</div>
|
|
</div>
|