ui: Add documentation link to the Server Fault Tolerance panel (#12792)

This commit is contained in:
John Cowen 2022-04-18 17:08:48 +01:00 committed by GitHub
parent 05e5722153
commit ceb6181063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -33,6 +33,11 @@ section[data-route='dc.show.serverstatus'] {
border-bottom: var(--decor-border-100); border-bottom: var(--decor-border-100);
border-color: rgb(var(--tone-border)); border-color: rgb(var(--tone-border));
} }
%server-failure-tolerance > header a {
float: right;
margin-top: 4px;
font-weight: var(--typo-weight-semibold);
}
%server-failure-tolerance header em { %server-failure-tolerance header em {
@extend %pill-200; @extend %pill-200;
font-size: 0.812rem; /* 13px */ font-size: 0.812rem; /* 13px */

View File

@ -87,6 +87,9 @@ as |item|}}
> >
<header> <header>
{{compute (fn route.t 'tolerance.link' (hash
htmlSafe=true
))}}
<h2> <h2>
{{compute (fn route.t 'tolerance.header')}} {{compute (fn route.t 'tolerance.header')}}
</h2> </h2>

View File

@ -5,6 +5,8 @@ dc:
title: Server status title: Server status
unassigned: Unassigned Zones unassigned: Unassigned Zones
tolerance: tolerance:
link: |
<a href="{CONSUL_DOCS_URL}/architecture/consensus" target="_blank" rel="noopener noreferrer">Learn more</a>
header: Server fault tolerance header: Server fault tolerance
immediate: immediate:
header: Immediate header: Immediate
@ -35,17 +37,17 @@ dc:
body: | body: |
<ul> <ul>
<li> <li>
<a href="{CONSUL_DOCS_URL}/enterprise/license/faq#q-is-there-a-grace-period-when-licenses-expire"> <a href="{CONSUL_DOCS_URL}/enterprise/license/faq#q-is-there-a-grace-period-when-licenses-expire" target="_blank" rel="noopener noreferrer">
License expiration License expiration
</a> </a>
</li> </li>
<li> <li>
<a href="{CONSUL_DOCS_URL}/docs/enterprise/license/faq#q-how-can-i-renew-a-license"> <a href="{CONSUL_DOCS_URL}/docs/enterprise/license/faq#q-how-can-i-renew-a-license" target="_blank" rel="noopener noreferrer">
Renewing a license Renewing a license
</a> </a>
</li> </li>
<li> <li>
<a href="{CONSUL_DOCS_LEARN_URL}/tutorials/nomad/hashicorp-enterprise-license?in=consul/enterprise"> <a href="{CONSUL_DOCS_LEARN_URL}/tutorials/nomad/hashicorp-enterprise-license?in=consul/enterprise" target="_blank" rel="noopener noreferrer">
Applying a new license Applying a new license
</a> </a>
</li> </li>